summaryrefslogtreecommitdiffstats
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-07-18 13:41:27 +0200
committerIngo Molnar <mingo@elte.hu>2008-07-18 13:41:27 +0200
commit2fb5e1e101d1b1c9a1aeca7ad99a02b49241ba7b (patch)
tree45c4575110c61ca181196c038e1579f0f4fb0174 /include/linux/blkdev.h
parent34646bca474142e1424e5f6c4a33cb2ba0930ea1 (diff)
parent5b664cb235e97afbf34db9c4d77f08ebd725335e (diff)
downloadlinux-2fb5e1e101d1b1c9a1aeca7ad99a02b49241ba7b.tar.gz
linux-2fb5e1e101d1b1c9a1aeca7ad99a02b49241ba7b.tar.bz2
linux-2fb5e1e101d1b1c9a1aeca7ad99a02b49241ba7b.zip
Merge branch 'linus' into x86/paravirt-spinlocks
Conflicts: arch/x86/kernel/Makefile Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index 32a441b05fd5..88d68081a0f1 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -985,6 +985,9 @@ static inline int bdev_integrity_enabled(struct block_device *bdev, int rw)
static inline int blk_integrity_rq(struct request *rq)
{
+ if (rq->bio == NULL)
+ return 0;
+
return bio_integrity(rq->bio);
}