summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/ab8500-debugfs.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2010-12-29 04:40:31 +0100
committerDavid S. Miller <davem@davemloft.net>2010-12-31 21:31:01 +0100
commit824f5f38d3005c346a043dedcfe8b048b699b81a (patch)
tree81d9f10bf6dabd5b2a439bf9805892d5d056127b /drivers/mfd/ab8500-debugfs.c
parentBroadcom CNIC core network driver: fix mem leak on allocation failures in cni... (diff)
downloadlinux-824f5f38d3005c346a043dedcfe8b048b699b81a.tar.xz
linux-824f5f38d3005c346a043dedcfe8b048b699b81a.zip
tg3: fix return value check in tg3_read_vpd()
Besides -ETIMEDOUT and -EINTR, pci_read_vpd may return other error values like -ENODEV or -EINVAL which are ignored due to the buggy check, but the data are not read from VPD anyway and this is checked subsequently with at most 3 needless loop iterations. This does not show up as a runtime bug. CC: Matt Carlson <mcarlson@broadcom.com> CC: Michael Chan <mchan@broadcom.com> Signed-off-by: David Sterba <dsterba@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/mfd/ab8500-debugfs.c')
0 files changed, 0 insertions, 0 deletions