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

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

diff --git a/queue-4.9/isdn-isdn_tty-fix-build-warning-of-strncpy.patch b/queue-4.9/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 db9ef68adb15b2c67da10221f5610c4ddfd9da64..5cfbb87ecc85dd7431308e903c51531ad8015f5b 100644 (file)
@@ -3,3 +3,4 @@ usb-serial-cp210x-add-id-for-ingenico-3070.patch
 usb-serial-ftdi_sio-add-id-for-hjelmslund-electronics-usb485.patch
 cpufreq-use-struct-kobj_attribute-instead-of-struct-global_attr.patch
 ncpfs-fix-build-warning-of-strncpy.patch
+isdn-isdn_tty-fix-build-warning-of-strncpy.patch