From: Alexey Khoroshilov Date: Fri, 18 Jan 2013 21:24:01 +0000 (+0400) Subject: mwl8k: don't return zero on failure paths in mwl8k_probe[_hw]() X-Git-Tag: v3.9-rc1~139^2~242^2^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2ca8ecb8ffc985e82c9570c3837408f7efe8c9d;p=pandora-kernel.git mwl8k: don't return zero on failure paths in mwl8k_probe[_hw]() If pci_iomap() fails in mwl8k_probe(), it breaks off initialization, deallocates all resources, but returns zero. There is a similar issue when priv->rxd_ops is NULL in mwl8k_probe_hw(). The patch adds proper error code return values. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Signed-off-by: John W. Linville --- Reading git-diff-tree failed