summaryrefslogtreecommitdiff
path: root/drivers/ata/sata_sil.c
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2009-07-26 14:21:01 (GMT)
committerJeff Garzik <jgarzik@redhat.com>2009-07-29 01:05:41 (GMT)
commit705d201414382b0966d7c903d738dfdb9380e4af (patch)
tree8b5b6c19e6ea3837e4775cd3b00aa17c4442a1d4 /drivers/ata/sata_sil.c
parent044dcc824a167e3d39ba69a49e2b723dd10678f6 (diff)
downloadlinux-705d201414382b0966d7c903d738dfdb9380e4af.tar.xz
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_sil.c')
0 files changed, 0 insertions, 0 deletions