]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.9-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Mar 2018 08:30:58 +0000 (10:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Mar 2018 08:30:58 +0000 (10:30 +0200)
added patches:
iio-abi-fix-name-of-timestamp-sysfs-file.patch
staging-lustre-ptlrpc-kfree-used-instead-of-kvfree.patch

queue-4.9/iio-abi-fix-name-of-timestamp-sysfs-file.patch [new file with mode: 0644]
queue-4.9/series
queue-4.9/staging-lustre-ptlrpc-kfree-used-instead-of-kvfree.patch [new file with mode: 0644]

diff --git a/queue-4.9/iio-abi-fix-name-of-timestamp-sysfs-file.patch b/queue-4.9/iio-abi-fix-name-of-timestamp-sysfs-file.patch
new file mode 100644 (file)
index 0000000..0f4eb80
--- /dev/null
@@ -0,0 +1,33 @@
+From b9a3589332c2a25fb7edad25a26fcaada3209126 Mon Sep 17 00:00:00 2001
+From: Linus Walleij <linus.walleij@linaro.org>
+Date: Tue, 5 Dec 2017 11:57:27 +0100
+Subject: iio: ABI: Fix name of timestamp sysfs file
+
+From: Linus Walleij <linus.walleij@linaro.org>
+
+commit b9a3589332c2a25fb7edad25a26fcaada3209126 upstream.
+
+The name of the file is "current_timetamp_clock" not
+"timestamp_clock".
+
+Fixes: bc2b7dab629a ("iio:core: timestamping clock selection support")
+Cc: Gregor Boirie <gregor.boirie@parrot.com>
+Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
+Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ Documentation/ABI/testing/sysfs-bus-iio |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/Documentation/ABI/testing/sysfs-bus-iio
++++ b/Documentation/ABI/testing/sysfs-bus-iio
+@@ -32,7 +32,7 @@ Description:
+               Description of the physical chip / device for device X.
+               Typically a part number.
+-What:         /sys/bus/iio/devices/iio:deviceX/timestamp_clock
++What:         /sys/bus/iio/devices/iio:deviceX/current_timestamp_clock
+ KernelVersion:        4.5
+ Contact:      linux-iio@vger.kernel.org
+ Description:
index b4590e6fed8d91de31b9796b68043cd94cafba23..0e95dabb67010bd3a2960dfd1f6d983a3fec0e8e 100644 (file)
@@ -55,3 +55,5 @@ perf-x86-intel-uncore-fix-skylake-upi-event-format.patch
 perf-stat-fix-cvs-output-format-for-non-supported-counters.patch
 perf-x86-intel-don-t-accidentally-clear-high-bits-in-bdw_limit_period.patch
 perf-x86-intel-uncore-fix-multi-domain-pci-cha-enumeration-bug-on-skylake-servers.patch
+iio-abi-fix-name-of-timestamp-sysfs-file.patch
+staging-lustre-ptlrpc-kfree-used-instead-of-kvfree.patch
diff --git a/queue-4.9/staging-lustre-ptlrpc-kfree-used-instead-of-kvfree.patch b/queue-4.9/staging-lustre-ptlrpc-kfree-used-instead-of-kvfree.patch
new file mode 100644 (file)
index 0000000..2e46777
--- /dev/null
@@ -0,0 +1,40 @@
+From c3eec59659cf25916647d2178c541302bb4822ad Mon Sep 17 00:00:00 2001
+From: Nadav Amit <namit@vmware.com>
+Date: Tue, 5 Sep 2017 20:25:25 +0000
+Subject: staging: lustre: ptlrpc: kfree used instead of kvfree
+
+From: Nadav Amit <namit@vmware.com>
+
+commit c3eec59659cf25916647d2178c541302bb4822ad upstream.
+
+rq_reqbuf is allocated using kvmalloc() but released in one occasion
+using kfree() instead of kvfree().
+
+The issue was found using grep based on a similar bug.
+
+Fixes: d7e09d0397e8 ("add Lustre file system client support")
+Fixes: ee0ec1946ec2 ("lustre: ptlrpc: Replace uses of OBD_{ALLOC,FREE}_LARGE")
+
+Cc: Peng Tao <bergwolf@gmail.com>
+Cc: Oleg Drokin <oleg.drokin@intel.com>
+Cc: James Simmons <jsimmons@infradead.org>
+
+Signed-off-by: Nadav Amit <namit@vmware.com>
+Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+---
+ drivers/staging/lustre/lustre/ptlrpc/sec.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/staging/lustre/lustre/ptlrpc/sec.c
++++ b/drivers/staging/lustre/lustre/ptlrpc/sec.c
+@@ -838,7 +838,7 @@ void sptlrpc_request_out_callback(struct
+       if (req->rq_pool || !req->rq_reqbuf)
+               return;
+-      kfree(req->rq_reqbuf);
++      kvfree(req->rq_reqbuf);
+       req->rq_reqbuf = NULL;
+       req->rq_reqbuf_len = 0;
+ }