Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0e0c6212 authored by Michal Simek's avatar Michal Simek Committed by Jens Axboe
Browse files

fs/bio.c: add missing __user annotation



As reported by sparse:

fs/bio.c:720:13: warning: incorrect type in assignment (different address spaces)
fs/bio.c:720:13:    expected char *iov_addr
fs/bio.c:720:13:    got void [noderef] <asn:1>*
fs/bio.c:724:36: warning: incorrect type in argument 2 (different address spaces)
fs/bio.c:724:36:    expected void const [noderef] <asn:1>*from
fs/bio.c:724:36:    got char *iov_addr

Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent d9c7d394
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -722,7 +722,7 @@ static int __bio_copy_iov(struct bio *bio, struct bio_vec *iovecs,


		while (bv_len && iov_idx < iov_count) {
		while (bv_len && iov_idx < iov_count) {
			unsigned int bytes;
			unsigned int bytes;
			char *iov_addr;
			char __user *iov_addr;


			bytes = min_t(unsigned int,
			bytes = min_t(unsigned int,
				      iov[iov_idx].iov_len - iov_off, bv_len);
				      iov[iov_idx].iov_len - iov_off, bv_len);