summaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax/i2400m/control.c
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-04-22 11:46:32 +0200
committerInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>2010-05-11 23:09:19 +0200
commit3e02a06ae3dce2eb804bb4afadb7067c80d6c096 (patch)
treec0b8c7ce06597a04d4521700cbf4d0412c9fb1b4 /drivers/net/wimax/i2400m/control.c
parentwimax: checking ERR_PTR vs null (diff)
downloadlinux-3e02a06ae3dce2eb804bb4afadb7067c80d6c096.tar.xz
linux-3e02a06ae3dce2eb804bb4afadb7067c80d6c096.zip
wimax: wimax_msg_alloc() returns ERR_PTR not null
wimax_msg_alloc() returns an ERR_PTR and not null. I changed it to test for ERR_PTR instead of null. I also added a check in front of the kfree() because kfree() can handle null but not ERR_PTR. Signed-off-by: Dan Carpenter <error27@gmail.com>
Diffstat (limited to 'drivers/net/wimax/i2400m/control.c')
0 files changed, 0 insertions, 0 deletions