commit | 3e02a06ae3dce2eb804bb4afadb7067c80d6c096 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <error27@gmail.com> | Thu Apr 22 11:46:32 2010 +0200 |
committer | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | Tue May 11 14:09:19 2010 -0700 |
tree | c0b8c7ce06597a04d4521700cbf4d0412c9fb1b4 | |
parent | d3e56c0ad8a2dab7ffd6179b64f00702149e5c9a [diff] |
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>