From: Alexey Khoroshilov Date: Wed, 2 Jan 2013 20:06:47 +0000 (+0400) Subject: p54pci: don't return zero on failure paths in p54p_probe() X-Git-Tag: v3.9-rc1~139^2~242^2^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6960af6dce1f0b2d9d1b4ddf75952d54e633b923;p=pandora-kernel.git p54pci: don't return zero on failure paths in p54p_probe() If pci_set_dma_mask() or pci_set_consistent_dma_mask() fails in p54p_probe(), it breaks off initialization, deallocates all resources, but returns zero. Similar issue is if check for returned value of pci_resource_len() fails. The patch implements proper error code propagation. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov Acked-by: Christian Lamparter Signed-off-by: John W. Linville --- Reading git-diff-tree failed