gadget/f_mass_storage: stop messing with the address limit
authorChristoph Hellwig <hch@lst.de>
Fri, 1 Sep 2017 15:39:21 +0000 (17:39 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Mon, 4 Sep 2017 23:05:16 +0000 (19:05 -0400)
commit05a4a33b6d82bc6ec157b0bda409b2708b1fa45f
treed603ead3c2fe70c412ee399f0530d321a0433f32
parent21cb2559eb510dfbe9b5d0dd31605f44d2cd2891
gadget/f_mass_storage: stop messing with the address limit

Instead use kernel_read/write consistently, which also makes sparse
happy.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/usb/gadget/function/f_mass_storage.c