linux-stable/drivers/staging
Mauro Carvalho Chehab fa1451374e media: atomisp: don't pass a pointer to a local variable
As warned by gcc 12.1:

	drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c: In function 'ia_css_rmgr_acq_vbuf':
	drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c:275:33: error: storing the address of local variable 'h' in '*handle' [-Werror=dangling-pointer=]
	  275 |                         *handle = &h;
	      |                         ~~~~~~~~^~~~
	drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c:257:40: note: 'h' declared here
	  257 |         struct ia_css_rmgr_vbuf_handle h;
	      |                                        ^
	drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c:257:40: note: 'handle' declared here
	cc1: all warnings being treated as errors

The logic uses a temporary struct to update the handler, but,
instead of copying the value to the pointer sent by the caller, it
replaces it with the content with a local variable. That's wrong, and
may lead the caller to use a weird value.

Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
2022-05-13 11:02:20 +02:00
..
axis-fifo
board
clocking-wizard
emxx_udc
fbtft Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
fieldbus
fwserial
gdm724x Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
greybus Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
iio iio:adc:ad7280a: Move out of staging 2022-02-21 19:33:05 +00:00
ks7010 staging/ks7010: Remove redundant 'flush_workqueue()' calls 2022-02-15 17:05:43 +01:00
media media: atomisp: don't pass a pointer to a local variable 2022-05-13 11:02:20 +02:00
most Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
nvec Staging: nvec: Fix ending in '(' error 2022-02-08 10:46:01 +01:00
octeon
octeon-usb
olpc_dcon
pi433 Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
qlge staging: qlge: add unregister_netdev in qlge_probe 2022-02-21 18:07:23 +01:00
r8188eu staging: r8188eu: Fix PPPoE tag insertion on little endian systems 2022-04-04 16:35:20 +02:00
rtl8192e staging: rtl8192e: Fix spelling mistake "RESQUEST" -> "REQUEST" 2022-03-16 15:08:53 +01:00
rtl8192u staging: rtl8192u: rework init and exit function 2022-02-25 10:08:32 +01:00
rtl8712 Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
rtl8723bs Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
rts5208 staging: rts5208: Resolve checkpatch.pl issues. 2022-03-18 13:44:02 +01:00
sm750fb staging: sm750fb: fix naming style 2022-03-18 13:43:41 +01:00
unisys Staging: unisys: visorhba: alignment should match open parenthesis 2022-02-08 10:34:53 +01:00
vc04_services Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
vme
vt6655 staging: vt6655: Remove unused byRFType in card.c 2022-03-14 18:32:39 +01:00
vt6656 staging: vt6656: Removed unused variable vt3342_vnt_threshold 2022-03-15 15:17:09 +01:00
wfx Staging driver update for 5.18-rc1 2022-03-28 12:50:50 -07:00
wlan-ng staging: Use netif_rx(). 2022-03-07 11:40:40 +00:00
Kconfig mips: dts: ralink: add MT7621 SoC 2022-03-16 15:10:23 +01:00
Makefile mips: dts: ralink: add MT7621 SoC 2022-03-16 15:10:23 +01:00