summaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_inic162x.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-07-26 16:21:01 +0200
committerJeff Garzik <jgarzik@redhat.com>2009-07-29 03:05:41 +0200
commit705d201414382b0966d7c903d738dfdb9380e4af (patch)
tree8b5b6c19e6ea3837e4775cd3b00aa17c4442a1d4 /drivers/ata/sata_inic162x.c
parentpata_pcmcia: add CNF-CDROM-ID (diff)
downloadlinux-705d201414382b0966d7c903d738dfdb9380e4af.tar.xz
linux-705d201414382b0966d7c903d738dfdb9380e4af.zip
libata: add missing NULL pointer check to ata_eh_reset()
drivers/ata/libata-eh.c +2403 ata_eh_reset(80) warning: variable derefenced before check 'slave' Please note that this is _not_ a real bug at the moment since ata_eh_context structure is embedded into ata_list structure and the code alwas checks for 'slave' before accessing 'sehc'. Anyway lets add missing check and always have a valid 'sehc' pointer (which makes code easier to understand and prevents introducing some possible bugs in the future). Reported-by: Dan Carpenter <error27@gmail.com> Cc: corbet@lwn.net Cc: eteo@redhat.com Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/sata_inic162x.c')
0 files changed, 0 insertions, 0 deletions