]> git.pld-linux.org Git - packages/lin_tape.git/blame - linux-4.4.169.patch
- rel 3
[packages/lin_tape.git] / linux-4.4.169.patch
CommitLineData
20957765
JR
1--- lin_tape-3.0.33/lin_tape_scsi_tape.c~ 2018-12-28 14:09:16.000000000 +0100
2+++ lin_tape-3.0.33/lin_tape_scsi_tape.c 2018-12-28 14:12:49.237558696 +0100
3@@ -11843,6 +11843,9 @@
4 #elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,6,0)
5 mapped_pages = get_user_pages((ulong)user_location, number_pages,
6 rw, 0, pages, NULL);
7+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,169)
8+ mapped_pages = get_user_pages(current, current->mm,
9+ (ulong)user_location, number_pages, rw ? FOLL_WRITE : 0, pages, NULL);
10 #else
11 mapped_pages = get_user_pages(current, current->mm,
12 (ulong)user_location, number_pages, rw, 0, pages, NULL);
This page took 0.030944 seconds and 4 git commands to generate.