Xiaotian Feng
45ecc8ac67
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: Ben Hutchings <ben@decadent.org.uk>
2013-01-03 03:33:41 +00:00
..
2011-07-23 17:57:36 -04:00
2011-11-17 02:10:49 -05:00
2012-09-19 15:05:22 +01:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-10-14 13:37:36 -04:00
2011-12-22 15:00:32 -05:00
2011-07-23 17:57:36 -04:00
2011-08-02 21:17:02 -10:00
2013-01-03 03:33:26 +00:00
2013-01-03 03:33:26 +00:00
2011-11-09 01:38:00 -05:00
2013-01-03 03:33:41 +00:00
2011-11-17 02:11:42 -05:00
2011-10-14 13:25:24 -04:00
2011-07-23 18:07:27 -04:00
2011-10-14 13:10:42 -04:00
2011-07-23 17:57:36 -04:00
2011-10-14 13:18:34 -04:00
2011-10-14 13:32:54 -04:00
2011-10-27 08:39:10 +02:00
2011-10-14 13:16:49 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-10-14 13:10:46 -04:00
2011-07-23 17:57:36 -04:00
2011-10-14 13:08:05 -04:00
2011-10-14 13:38:40 -04:00
2011-07-23 17:57:36 -04:00
2011-10-14 13:07:18 -04:00
2011-07-23 17:57:36 -04:00
2011-08-18 23:57:58 -04:00
2011-07-23 18:04:25 -04:00
2011-10-14 13:25:17 -04:00
2011-07-23 17:57:36 -04:00
2012-04-02 09:52:49 -07:00
2011-07-23 17:57:36 -04:00
2011-10-08 00:07:16 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-11-10 15:57:59 -05:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-10-14 13:32:52 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-10-14 13:38:36 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-10-14 13:01:42 -04:00
2011-10-14 13:19:51 -04:00
2011-07-23 17:57:36 -04:00
2011-10-14 13:16:35 -04:00
2011-10-14 12:46:45 -04:00
2011-10-08 00:07:16 -04:00
2011-10-14 13:32:53 -04:00
2011-07-23 17:57:36 -04:00
2011-10-14 13:22:54 -04:00
2011-07-23 17:57:36 -04:00
2011-08-18 23:58:11 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-10-07 23:46:20 -04:00
2011-07-23 17:57:36 -04:00
2013-01-03 03:33:19 +00:00
2011-07-23 17:57:36 -04:00
2011-10-08 00:07:15 -04:00
2011-08-18 23:52:36 -04:00
2011-11-09 01:36:49 -05:00
2013-01-03 03:32:49 +00:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00
2011-07-23 17:57:36 -04:00