summaryrefslogtreecommitdiff
path: root/Documentation/input
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2008-11-05 09:21:06 (GMT)
committerJens Axboe <jens.axboe@oracle.com>2008-11-06 07:41:56 (GMT)
commit89f97496e81d2112b5e41416fe3020688c443818 (patch)
treee78122150d550bf644ca1a96916a5880823d3e04 /Documentation/input
parent561920a0d2bb6d63343e83acfd784c0a77bd28d1 (diff)
downloadlinux-89f97496e81d2112b5e41416fe3020688c443818.tar.xz
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 'Documentation/input')
0 files changed, 0 insertions, 0 deletions