]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
4.4-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Mar 2019 17:09:29 +0000 (18:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Mar 2019 17:09:29 +0000 (18:09 +0100)
added patches:
isdn-isdn_tty-fix-build-warning-of-strncpy.patch

queue-4.4/isdn-isdn_tty-fix-build-warning-of-strncpy.patch [new file with mode: 0644]
queue-4.4/series

diff --git a/queue-4.4/isdn-isdn_tty-fix-build-warning-of-strncpy.patch b/queue-4.4/isdn-isdn_tty-fix-build-warning-of-strncpy.patch
new file mode 100644 (file)
index 0000000..83c0127
--- /dev/null
@@ -0,0 +1,33 @@
+From foo@baz Thu Mar  7 18:06:23 CET 2019
+Date: Thu, 07 Mar 2019 18:06:23 +0100
+To: Greg KH <gregkh@linuxfoundation.org>
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+Subject: isdn: isdn_tty: fix build warning of strncpy
+
+From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+Not upstream as isdn is long deleted.
+
+Fix up a strncpy build warning for isdn_tty_suspend() using strscpy.
+
+It's not like anyone uses this code anyway, and this gets rid of a build
+warnings so that we can see real warnings as they pop up over time.
+
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+
+
+---
+ drivers/isdn/i4l/isdn_tty.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/drivers/isdn/i4l/isdn_tty.c
++++ b/drivers/isdn/i4l/isdn_tty.c
+@@ -786,7 +786,7 @@ isdn_tty_suspend(char *id, modem_info *i
+               cmd.parm.cmsg.para[3] = 4; /* 16 bit 0x0004 Suspend */
+               cmd.parm.cmsg.para[4] = 0;
+               cmd.parm.cmsg.para[5] = l;
+-              strncpy(&cmd.parm.cmsg.para[6], id, l);
++              strscpy(&cmd.parm.cmsg.para[6], id, l);
+               cmd.command = CAPI_PUT_MESSAGE;
+               cmd.driver = info->isdn_driver;
+               cmd.arg = info->isdn_channel;
index 8d456f6c8228a3d3956868309b3c4a0c7432e79c..4de0ecb8c18bbe7049aef934e4bb522528ce74c3 100644 (file)
@@ -58,3 +58,4 @@ usb-serial-ftdi_sio-add-id-for-hjelmslund-electronics-usb485.patch
 cpufreq-use-struct-kobj_attribute-instead-of-struct-global_attr.patch
 sockfs-getxattr-fail-with-eopnotsupp-for-invalid-attribute-names.patch
 ncpfs-fix-build-warning-of-strncpy.patch
+isdn-isdn_tty-fix-build-warning-of-strncpy.patch