diff options
author | Jens Axboe <jaxboe@fusionio.com> | 2011-05-26 21:01:38 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-05-26 21:01:38 +0200 |
commit | f4fa3424c66255ba1e07b26becfc3d6cab0fdf65 (patch) | |
tree | 7c16496c0f87bc4f1236c08e264065c776baec73 /drivers | |
parent | 4db70f73e56961b9bcdfd0c36c62847a18b7dbb5 (diff) | |
download | linux-f4fa3424c66255ba1e07b26becfc3d6cab0fdf65.tar.gz linux-f4fa3424c66255ba1e07b26becfc3d6cab0fdf65.tar.bz2 linux-f4fa3424c66255ba1e07b26becfc3d6cab0fdf65.zip |
block: fix oops on !disk->queue and sysfs discard alignment display
Eric Dumazet reports:
----
At boot, I have a crash in part_discard_alignment_show+0x1b/0x50
CR2 : 000006ac
fault in : mov 0x2c(%rcx),%edx
I suspect commit 23ceb5b7719e9276d4 (block: Remove extra
discard_alignment from hd_struct) being in fault
----
Not quite known how ->queue can be NULL while the sysfs entry
exists, but lets play it safe and check for a NULL queue.
The rest of the sysfs show strategies in check.c do not dereference
disk->queue.
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions