From: Dan Carpenter Date: Thu, 22 Apr 2010 09:46:32 +0000 (+0200) Subject: wimax: wimax_msg_alloc() returns ERR_PTR not null X-Git-Tag: v2.6.35-rc1~473^2~99^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e02a06ae3dce2eb804bb4afadb7067c80d6c096;p=pandora-kernel.git 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 --- Reading git-diff-tree failed