Re: [EXT] [PATCH][next] media: imx-jpeg: Pass the v4l2_jpeg_header header argument by reference

2021-03-27 Thread Mirela Rabulea
Hi, On Tue, 2021-03-23 at 14:24 +, Colin King wrote: > > From: Colin Ian King > > Currently the header argument is being passed by value, so a copy of > 256 > byte structure on the stack is potentially occurring. Fix this by > passing > by reference to avoid any large stack copies. > > Add

[PATCH][next] media: imx-jpeg: Pass the v4l2_jpeg_header header argument by reference

2021-03-23 Thread Colin King
From: Colin Ian King Currently the header argument is being passed by value, so a copy of 256 byte structure on the stack is potentially occurring. Fix this by passing by reference to avoid any large stack copies. Addresses-Coverity: ("Big parameter passed by value") Fixes: 2db16c6ed72c ("media: