]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - block/blk-map.c
block: make blk_rq_map_user() clear ->bio if it unmaps it
[linux-2.6-omap-h63xx.git] / block / blk-map.c
index 955d75c1a58fd634e3f168ec8d091c4c9e93a965..bc5ce60691c31244f84122800d8ae762285f3afa 100644 (file)
@@ -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);