From: Greg Kroah-Hartman Date: Thu, 7 Mar 2019 17:09:29 +0000 (+0100) Subject: 4.4-stable patches X-Git-Tag: v5.0.1~36 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=26ea3c9c4f79c279e5bab2214d6e19ae8fca46c7;p=thirdparty%2Fkernel%2Fstable-queue.git 4.4-stable patches added patches: isdn-isdn_tty-fix-build-warning-of-strncpy.patch --- 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 index 00000000000..83c0127f0f5 --- /dev/null +++ b/queue-4.4/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.4/series b/queue-4.4/series index 8d456f6c822..4de0ecb8c18 100644 --- a/queue-4.4/series +++ b/queue-4.4/series @@ -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