linux/drivers/staging
Arnd Bergmann d42f9c7435 staging: lustre: ko2iblnd: check copy_from_iter/copy_to_iter return code
commit 566e1ce22e upstream.

We now get a helpful warning for code that calls copy_{from,to}_iter
without checking the return value, introduced by commit aa28de275a
("iov_iter/hardening: move object size checks to inlined part").

drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c: In function 'kiblnd_send':
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c:1643:2: error: ignoring return value of 'copy_from_iter', declared with attribute warn_unused_result [-Werror=unused-result]
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c: In function 'kiblnd_recv':
drivers/staging/lustre/lnet/klnds/o2iblnd/o2iblnd_cb.c:1744:3: error: ignoring return value of 'copy_to_iter', declared with attribute warn_unused_result [-Werror=unused-result]

In case we get short copies here, we may get incorrect behavior.
I've added failure handling for both rx and tx now, returning
-EFAULT as expected.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-07-27 15:08:06 -07:00
..
android staging: android: ashmem: lseek failed due to no FMODE_LSEEK. 2017-04-12 12:41:11 +02:00
board staging: board: Remove calls to of_genpd_get_from_provider() 2016-09-13 02:49:33 +02:00
clocking-wizard Staging: clocking-wizard: CHECK:Please use a blank line 2016-02-07 20:05:31 -08:00
comedi staging: comedi: ni_mio_common: fix AO timer off-by-one regression 2017-07-27 15:08:06 -07:00
dgnc staging: dgnc: Fix lines longer than 80 characters 2016-10-02 17:24:00 +02:00
emxx_udc staging: emxx_udc: remove incorrect __init annotations 2017-05-14 14:00:20 +02:00
fbtft Staging: fbtft: Fix bug in fbtft-core 2016-10-02 19:51:05 +02:00
fsl-mc Staging/IIO patches for 4.9-rc1 2016-10-05 14:50:51 -07:00
fwserial staging: fwserial: fix checkpatch permission warnings 2016-09-13 15:44:46 +02:00
gdm724x staging: gdm724x: gdm_mux: fix use-after-free on module unload 2017-05-20 14:28:35 +02:00
goldfish staging: goldfish: audio: fix compiliation on arm 2016-03-11 22:09:09 -08:00
greybus staging: greybus: loopback: fix broken udelay 2017-03-12 06:41:42 +01:00
gs_fpgaboot staging: gs_fpgaboot: Remove FSF address from GPL notice 2016-09-16 10:10:34 +02:00
i4l staging: i4l: act2000: Move assignment out of if statement 2016-09-20 13:46:32 +02:00
iio staging: iio: tsl2x7x_core: Fix standard deviation calculation 2017-06-24 07:11:14 +02:00
ks7010 Staging : ks7010 : Fix block comments warninig 2016-10-02 17:29:11 +02:00
lustre staging: lustre: ko2iblnd: check copy_from_iter/copy_to_iter return code 2017-07-27 15:08:06 -07:00
media cec: fix wrong last_la determination 2017-06-17 06:41:53 +02:00
most Staging: most: hdm-dim2: constify attribute_group structures 2016-10-02 17:24:00 +02:00
mt29f_spinand staging: mt29f_spinand: set ECC algorithm explicitly 2016-05-05 23:52:04 +02:00
netlogic Staging: netlogic: Remove unused function 2016-09-16 10:10:34 +02:00
nvec staging: nvec: remove managed resource from PS2 driver 2016-11-07 11:48:25 +01:00
octeon staging: octeon: Call SET_NETDEV_DEV() 2017-01-12 11:39:05 +01:00
octeon-usb staging: octeon-usb: Remove unnecessary assignment 2016-09-22 11:54:48 +02:00
olpc_dcon Revert "staging: olpc_dcon: Replace a bit shift by a use of BIT." 2016-09-18 13:09:50 +02:00
rtl8188eu staging: rtl8188eu: add TL-WN722N v2 support 2017-07-27 15:08:06 -07:00
rtl8192e staging: rtl8192e: GetTs Fix invalid TID 7 warning. 2017-05-25 15:44:46 +02:00
rtl8192u staging: rtl8192u: remove unused functions in r8192U_core.c 2016-09-23 19:00:44 +02:00
rtl8712 staging: rtl: fix possible NULL pointer dereference 2017-03-12 06:41:42 +01:00
rts5208 Staging: rts5208: Fix indentation warnings 2016-10-02 17:14:03 +02:00
skein staging: skein: cleanup: align code to parentheses 2016-05-03 14:07:11 -07:00
slicoss staging: slicoss: cleaning up codestyle warnings 2016-09-27 13:08:04 +02:00
sm750fb staging: sm750fb: avoid conflicting vesafb 2017-07-27 15:08:06 -07:00
speakup Staging: speakup: constify attribute_group structures 2016-10-02 17:14:03 +02:00
unisys staging: unisys: visorbus: fix typos with client_bus_info /sys entry 2016-09-28 11:30:52 +02:00
vc04_services mm: replace get_user_pages() write/force parameters with gup_flags 2016-10-19 08:11:43 -07:00
vme drivers: staging: vme: convert to octal notation for permission bits 2016-09-17 23:36:53 +02:00
vt6655 Staging: vt6655: Remove explicit NULL comparison using Coccinelle 2016-10-02 17:29:11 +02:00
vt6656 staging: vt6556: vnt_start Fix missing call to vnt_key_init_table. 2017-07-15 12:16:15 +02:00
wilc1000 Staging: wilc1000: Fix kernel Oops on opening the device 2016-10-17 09:14:55 +02:00
wlan-ng staging: wlan-ng: add missing byte order conversion 2017-05-14 14:00:20 +02:00
xgifb staging: xgifb: Remove unused variable and if statement 2016-09-22 11:54:47 +02:00
Kconfig staging: add bcm2708 vchiq driver 2016-10-02 15:40:04 +02:00
Makefile staging: add bcm2708 vchiq driver 2016-10-02 15:40:04 +02:00