Xiaotian Feng
26cd4d65de
[libata] fix Null pointer dereference on disk error
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>
Cc: stable@kernel.org
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
2012-12-14 09:40:34 -05:00
..
2012-07-25 15:12:11 -04:00
2012-12-14 09:38:17 -05:00
2012-09-13 00:24:29 -04:00
2012-09-13 01:10:18 -04:00
2012-07-25 15:12:11 -04:00
2012-12-03 04:57:51 -05:00
2012-09-13 01:09:41 -04:00
2012-12-14 09:38:50 -05:00
2012-12-03 04:57:15 -05:00
2012-12-14 09:34:01 -05:00
2012-12-03 05:07:13 -05:00
2012-06-29 11:38:11 -04:00
2012-12-14 09:40:34 -05:00
2012-03-20 21:48:16 +08:00
2012-07-25 15:14:55 -04:00
2012-09-13 01:08:53 -04:00
2012-10-01 22:50:37 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-11-28 12:40:07 -05:00
2012-07-25 15:12:11 -04:00
2012-08-17 13:26:51 -04:00
2012-07-25 15:12:11 -04:00
2012-11-28 12:40:15 -05:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-11-28 12:38:41 -05:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-12-14 09:38:42 -05:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-12-14 09:38:46 -05:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-12-03 05:15:20 -05:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-12-03 05:15:22 -05:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-12-14 09:35:51 -05:00
2012-12-03 13:53:40 -05:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-12-03 05:15:35 -05:00
2012-07-25 15:06:20 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-12-03 05:15:33 -05:00
2012-09-14 11:18:10 +02:00
2012-07-25 15:12:11 -04:00
2012-11-28 12:38:53 -05:00
2012-07-25 15:12:11 -04:00
2012-09-19 17:42:18 +02:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:54:21 -04:00
2012-09-13 01:09:19 -04:00
2012-12-03 13:53:25 -05:00
2012-11-28 12:39:09 -05:00
2012-10-01 22:53:23 -04:00
2012-07-25 15:12:11 -04:00
2012-11-28 12:37:56 -05:00
2012-07-25 15:12:11 -04:00
2012-11-28 12:39:20 -05:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-11-15 23:54:41 -05:00
2012-11-28 12:39:44 -05:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00
2012-07-25 15:12:11 -04:00