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)
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>

No differences found