summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJens Axboe <jens.axboe@oracle.com>2008-11-18 14:07:05 (GMT)
committerJens Axboe <jens.axboe@oracle.com>2008-11-18 14:08:56 (GMT)
commitc26156b2534c75bb3cdedf76f6ad1340971cf5bd (patch)
treeb95ed72f569c105fcc9e8f38df3d47628e689059 /arch
parent98ba4031ab2adc8b394295e68aa4c8fe9d5060db (diff)
downloadlinux-fsl-qoriq-c26156b2534c75bb3cdedf76f6ad1340971cf5bd.tar.xz
block: hold extra reference to bio in blk_rq_map_user_iov()
If the size passed in is OK but we end up mapping too many segments, we call the unmap path directly like from IO completion. But from IO completion we have an extra reference to the bio, so this error case goes OOPS when it attempts to free and already free bio. Fix it by getting an extra reference to the bio before calling the unmap failure case. Reported-by: Petr Vandrovec <vandrove@vc.cvut.cz> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions