From: Luciano Coelho Date: Tue, 13 Aug 2013 07:34:55 +0000 (+0300) Subject: iwlwifi: return -ENOMEM instead of NULL when OOM in iwl_drv_start() X-Git-Tag: v3.12-rc1~132^2~84^2^2~55^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eafe25e0afaf45a4e38f9b3560ac774a2395c695;p=pandora-kernel.git iwlwifi: return -ENOMEM instead of NULL when OOM in iwl_drv_start() The callers of iwl_drv_start() are probe functions. If a probe function returns 0, it means it succeeded. So if NULL was returned by iwl_drv_start(), it would be considered as a success. Fix this by returning -ENOMEM if the driver struct allocation fails in iwl_drv_start(). Signed-off-by: Luciano Coelho Signed-off-by: Johannes Berg --- Reading git-diff-tree failed