Skip to content
Commit 3e02a06a authored by Dan Carpenter's avatar Dan Carpenter Committed by Inaky Perez-Gonzalez
Browse files

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: default avatarDan Carpenter <error27@gmail.com>
parent d3e56c0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment