X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=mm%2Fbounce.c;h=06722c4030584382478d7c447ad35f96fe856dd6;hb=8edb08caf68184fb170f4f69c7445929e199eaea;hp=3b549bf31f7dc474996bf30a0401eea82b490466;hpb=6f35308c3ffa256bed183adf6f2c0c6c211ca487;p=mv-sheeva.git diff --git a/mm/bounce.c b/mm/bounce.c index 3b549bf31f7..06722c40305 100644 --- a/mm/bounce.c +++ b/mm/bounce.c @@ -264,6 +264,12 @@ void blk_queue_bounce(struct request_queue *q, struct bio **bio_orig) { mempool_t *pool; + /* + * Data-less bio, nothing to bounce + */ + if (!bio_has_data(*bio_orig)) + return; + /* * for non-isa bounce case, just check if the bounce pfn is equal * to or bigger than the highest pfn in the system -- in that case,