From: Axel Lin Date: Mon, 10 Jan 2011 02:26:00 +0000 (+0800) Subject: iwmc3200wifi: Return proper error for iwm_if_alloc X-Git-Tag: v2.6.38-rc2~33^2~17^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35b3ac470b982ded560e1b2ec9206a8d186c3459;p=pandora-kernel.git iwmc3200wifi: Return proper error for iwm_if_alloc In the case of alloc_netdev_mq failure and kmalloc failure, current implementation returns ERR_PTR(0). As a result, the caller of iwm_if_alloc does not catch the error by IS_ERR macro. Fix it by setting proper error code for ret variable in the failure cases. Signed-off-by: Axel Lin Signed-off-by: John W. Linville --- Reading git-diff-tree failed