diff options
author | Muthu Kumar <muthu.lkml@gmail.com> | 2012-03-05 23:59:16 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-03-06 00:49:43 +0100 |
commit | 9354f1b8e6c55c335d1c4fb10d0ae7a041935240 (patch) | |
tree | 98854146031952f226db78a5763b7bf28d310cde /drivers/scsi/sd_dif.c | |
parent | memcg: fix deadlock by inverting lrucare nesting (diff) | |
download | linux-9354f1b8e6c55c335d1c4fb10d0ae7a041935240.tar.xz linux-9354f1b8e6c55c335d1c4fb10d0ae7a041935240.zip |
floppy/scsi: fix setting of BIO flags
Fix setting bio flags in drivers (sd_dif/floppy).
Signed-off-by: Muthukumar R <muthur@gmail.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/scsi/sd_dif.c')
-rw-r--r-- | drivers/scsi/sd_dif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd_dif.c b/drivers/scsi/sd_dif.c index 0cb39ff21171..f8fb2d691c0a 100644 --- a/drivers/scsi/sd_dif.c +++ b/drivers/scsi/sd_dif.c @@ -408,7 +408,7 @@ int sd_dif_prepare(struct request *rq, sector_t hw_sector, unsigned int sector_s kunmap_atomic(sdt, KM_USER0); } - bio->bi_flags |= BIO_MAPPED_INTEGRITY; + bio->bi_flags |= (1 << BIO_MAPPED_INTEGRITY); } return 0; |