summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci.c
diff options
context:
space:
mode:
authorZahari Doychev <zahari.doychev@linux.com>2014-07-08 09:37:35 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-07-09 07:31:01 +0200
commit433135c85c521aa9119b8ad1343eb70973c58f21 (patch)
treef39242e452ff37447ad4f3d2f10c9a68b73cfdb2 /drivers/pci/pci.c
parent3f4e7adae9365aa08b5f87355bbb2ba370961304 (diff)
downloadbarebox-433135c85c521aa9119b8ad1343eb70973c58f21.tar.gz
barebox-433135c85c521aa9119b8ad1343eb70973c58f21.tar.xz
drivers/mtd: fix NULL pointer dereference in partition lock/unlock
Some mtd device does not support lock and unlock functions. Adding this check avoids crashing when mtd_part_lock/unlock are called for such devices. Signed-off-by: Zahari Doychev <zahari.doychev@linux.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/pci/pci.c')
0 files changed, 0 insertions, 0 deletions