* Re: drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c:275: dangling pointer ?
[not found] <HE1P189MB05719D490E35B19D832195139C589@HE1P189MB0571.EURP189.PROD.OUTLOOK.COM>
@ 2022-01-19 10:29 ` gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2022-01-19 10:29 UTC (permalink / raw)
To: David Binderman
Cc: mchehab, sakari.ailus, linux-media, linux-staging,
Linux Kernel Mailing List
On Tue, Jan 18, 2022 at 09:53:48AM +0000, David Binderman wrote:
> Hello there,
>
> Recent gcc development versions say:
>
> drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c:275:33: warning: storing the address of local variable ‘h’ in ‘*handle’ [-Wdangling-pointer=]
>
> Source code is
>
> *handle = &h;
>
> but h is a stack local variable, so exporting its address doesn't make any sense.
Great, can you send a patch to fix this up?
thanks,
greg k-h
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-19 10:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <HE1P189MB05719D490E35B19D832195139C589@HE1P189MB0571.EURP189.PROD.OUTLOOK.COM>
2022-01-19 10:29 ` drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c:275: dangling pointer ? gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®