]> git.baikalelectronics.ru Git - kernel.git/commit
wimax: wimax_msg_alloc() returns ERR_PTR not null
authorDan Carpenter <error27@gmail.com>
Thu, 22 Apr 2010 09:46:32 +0000 (11:46 +0200)
committerInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Tue, 11 May 2010 21:09:19 +0000 (14:09 -0700)
commit8f4aaf01c8676b34d719d9c4585cc7431606283a
treec0b8c7ce06597a04d4521700cbf4d0412c9fb1b4
parente7779de673684a12d83e4a974f95ade60280507b
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>
drivers/net/wimax/i2400m/rx.c