summaryrefslogtreecommitdiff
path: root/drivers/scsi/FlashPoint.c
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2016-12-02 16:19:12 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-21 09:31:23 +0200
commit7599166d785552bd8b4abff6eb222fa9efc616fa (patch)
treec33f3a875356a06da47fde2b00d2bf96ea573f47 /drivers/scsi/FlashPoint.c
parent9c0c4352726368fca2760b9b9a7d808ce86871c7 (diff)
nbd: use loff_t for blocksize and nbd_set_size args
commit ef77b515243b3499d62cf446eda6ca7e0a0b079c upstream. If we have large devices (say like the 40t drive I was trying to test with) we will end up overflowing the int arguments to nbd_set_size and not get the right size for our device. Fix this by using loff_t everywhere so I don't have to think about this again. Thanks, Signed-off-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com> [bwh: Backported to 4.9: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi/FlashPoint.c')
0 files changed, 0 insertions, 0 deletions