Xiaotian Feng
454a7d5986
libata: fix Null pointer dereference on disk error
commit 26cd4d65de upstream.
Following oops were observed when disk error happened:
[ 4272.896937] sd 0:0:0:0: [sda] Unhandled error code
[ 4272.896939] sd 0:0:0:0: [sda] Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[ 4272.896942] sd 0:0:0:0: [sda] CDB: Read(10): 28 00 00 5a de a7 00 00 08 00
[ 4272.896951] end_request: I/O error, dev sda, sector 5955239
[ 4291.574947] BUG: unable to handle kernel NULL pointer dereference at (null)
[ 4291.658305] IP: [] ahci_activity_show+0x1/0x40
[ 4291.730090] PGD 76dbbc067 PUD 6c4fba067 PMD 0
[ 4291.783408] Oops: 0000 [#1] SMP
[ 4291.822100] last sysfs file: /sys/devices/pci0000:00/0000:00:1f.2/host0/target0:0:0/0:0:0:0/sw_activity
[ 4291.934235] CPU 9
[ 4291.958301] Pid: 27942, comm: hwinfo ......
ata_scsi_find_dev could return NULL, so ata_scsi_activity_{show,store} should check if atadev is NULL.
Signed-off-by: Xiaotian Feng <dannyfeng@tencent.com>
Cc: James Bottomley <JBottomley@Parallels.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2013-01-17 08:43:54 -08:00
..
2011-05-19 20:45:15 -04:00
2010-10-21 20:21:04 -04:00
2012-10-02 09:47:25 -07:00
2011-04-24 11:31:31 -04:00
2011-03-02 02:36:45 -05:00
2011-11-11 09:35:50 -08:00
2011-03-14 02:52:46 -04:00
2011-06-29 10:10:07 -07:00
2011-03-02 02:36:46 -05:00
2013-01-17 08:43:54 -08:00
2013-01-17 08:43:54 -08:00
2011-05-19 20:48:59 -04:00
2013-01-17 08:43:54 -08:00
2011-05-14 14:59:54 -04:00
2010-10-21 20:21:04 -04:00
2010-10-21 20:21:03 -04:00
2011-03-02 02:36:45 -05:00
2011-03-14 02:52:46 -04:00
2011-03-02 02:36:46 -05:00
2010-05-25 19:40:30 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-09-09 14:19:18 -04:00
2011-03-02 02:36:46 -05:00
2011-05-14 15:00:13 -04:00
2010-05-25 19:40:30 -04:00
2010-05-25 19:40:24 -04:00
2011-03-31 11:26:23 -03:00
2011-05-14 14:59:15 -04:00
2010-10-21 20:21:05 -04:00
2011-03-31 11:26:23 -03:00
2010-05-25 19:40:30 -04:00
2010-05-25 19:40:30 -04:00
2010-12-26 19:42:15 -05:00
2010-05-25 19:40:30 -04:00
2010-05-25 19:40:30 -04:00
2011-03-14 02:56:31 -04:00
2011-03-02 02:36:45 -05:00
2011-03-14 02:56:31 -04:00
2011-03-14 02:56:31 -04:00
2010-05-25 19:40:24 -04:00
2009-03-24 22:52:39 -04:00
2011-03-02 02:36:45 -05:00
2010-05-25 19:40:30 -04:00
2011-03-29 14:48:19 +02:00
2010-05-25 19:40:30 -04:00
2012-04-02 09:27:13 -07:00
2011-03-02 02:36:46 -05:00
2011-06-24 02:07:35 -04:00
2011-02-28 13:22:46 -07:00
2011-03-31 11:26:23 -03:00
2010-05-25 19:40:30 -04:00
2011-03-02 02:36:45 -05:00
2010-03-01 14:58:46 -05:00
2010-05-25 19:40:30 -04:00
2011-03-02 02:36:46 -05:00
2011-02-28 13:22:46 -07:00
2010-05-25 19:40:30 -04:00
2010-03-01 14:58:46 -05:00
2010-05-25 19:40:30 -04:00
2011-03-26 10:03:03 +00:00
2011-05-06 07:46:22 +02:00
2010-10-21 20:21:06 -04:00
2011-03-02 02:36:46 -05:00
2010-05-25 19:40:30 -04:00
2010-05-19 13:32:19 -04:00
2011-03-02 02:36:46 -05:00
2009-03-24 22:13:27 -04:00
2010-05-25 19:40:30 -04:00
2011-03-29 14:48:19 +02:00
2010-05-25 19:40:30 -04:00
2011-03-31 11:26:23 -03:00
2011-03-02 02:36:46 -05:00
2010-05-25 19:40:30 -04:00
2011-03-02 02:36:46 -05:00
2010-05-25 19:40:30 -04:00
2010-05-25 19:40:30 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2010-10-21 20:21:06 -04:00
2011-05-19 20:46:40 -04:00
2011-10-03 11:39:57 -07:00
2011-03-02 02:36:46 -05:00
2011-06-23 16:40:28 -04:00
2011-03-31 11:26:23 -03:00
2010-10-21 20:21:05 -04:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2013-01-17 08:43:54 -08:00
2008-01-23 05:24:15 -05:00
2011-03-02 02:36:46 -05:00
2011-03-02 02:36:46 -05:00
2011-03-02 02:36:46 -05:00
2011-03-02 02:36:46 -05:00
2012-12-03 12:59:15 -08:00
2011-03-02 02:36:46 -05:00
2011-03-02 02:36:46 -05:00
2011-03-31 11:26:23 -03:00
2011-03-02 02:36:46 -05:00
2007-07-02 10:17:42 -04:00