Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=84e9e03c55c2456799ab19f1d577e72f721fdd39
Commit:     84e9e03c55c2456799ab19f1d577e72f721fdd39
Parent:     86b6c7a7f78feca58d2d8615e53aee4d59ab9dc6
Author:     Jens Axboe <[EMAIL PROTECTED]>
AuthorDate: Mon Feb 18 13:51:56 2008 +0100
Committer:  Jens Axboe <[EMAIL PROTECTED]>
CommitDate: Tue Feb 19 10:04:00 2008 +0100

    block: make blk_rq_map_user() clear ->bio if it unmaps it
    
    That way the interface is symmetric, and calling blk_rq_unmap_user()
    on the request wont oops.
    
    Signed-off-by: Jens Axboe <[EMAIL PROTECTED]>
---
 block/blk-map.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/block/blk-map.c b/block/blk-map.c
index 955d75c..bc5ce60 100644
--- a/block/blk-map.c
+++ b/block/blk-map.c
@@ -143,6 +143,7 @@ int blk_rq_map_user(struct request_queue *q, struct request 
*rq,
        return 0;
 unmap_rq:
        blk_rq_unmap_user(bio);
+       rq->bio = NULL;
        return ret;
 }
 EXPORT_SYMBOL(blk_rq_map_user);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to