From: Greg Kroah-Hartman Date: Thu, 7 Mar 2019 17:11:41 +0000 (+0100) Subject: 4.9-stable patches X-Git-Tag: v5.0.1~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cd588d9e8966904b15ea774331aa794d26c9d640;p=thirdparty%2Fkernel%2Fstable-queue.git 4.9-stable patches added patches: isdn-isdn_tty-fix-build-warning-of-strncpy.patch --- 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 index 00000000000..83c0127f0f5 --- /dev/null +++ b/queue-4.9/isdn-isdn_tty-fix-build-warning-of-strncpy.patch @@ -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 +From: Greg Kroah-Hartman +Subject: isdn: isdn_tty: fix build warning of strncpy + +From: Greg Kroah-Hartman + +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 + + +--- + 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; diff --git a/queue-4.9/series b/queue-4.9/series index db9ef68adb1..5cfbb87ecc8 100644 --- a/queue-4.9/series +++ b/queue-4.9/series @@ -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