aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/timer.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-11-05 04:21:06 -0500
committerJens Axboe <jens.axboe@oracle.com>2008-11-06 02:41:56 -0500
commit89f97496e81d2112b5e41416fe3020688c443818 (patch)
treee78122150d550bf644ca1a96916a5880823d3e04 /kernel/timer.c
parent561920a0d2bb6d63343e83acfd784c0a77bd28d1 (diff)
block: fix __blkdev_get() for removable devices
Commit 0762b8bde9729f10f8e6249809660ff2ec3ad735 moved disk_get_part() in front of recursive get on the whole disk, which caused removable devices to try disk_get_part() before rescanning after a new media is inserted, which might fail legit open attempts or give the old partition. This patch fixes the problem by moving disk_get_part() after __blkdev_get() on the whole disk. This problem was spotted by Borislav Petkov. Signed-off-by: Tejun Heo <tj@kernel.org> Tested-by: Borislav Petkov <petkovbb@gmail.com> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'kernel/timer.c')
0 files changed, 0 insertions, 0 deletions