Powered by Linux
Re: [PATCH v2] check_unwind: Add request/release_firmware to the function table — Semantic Matching Tool

Re: [PATCH v2] check_unwind: Add request/release_firmware to the function table

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 31, 2023 at 11:28:16AM -0700, Harshit Mogalapalli wrote:
> Add request and release firmware to catch bugs where there is an
> imbalance between release and request firmware.
> 
> request_firmware(const struct firmware **firmware_p, const char *name,
> 		 struct device *device)
> 
> release frees(firmware) so we should pass '0' to the table entry in the
> ALLOC.
> 
> Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@xxxxxxxxxx>
> ---
> v1-->v2: Fix the return range for success path.
> 

Awesome.  Thanks!  Applied.

regards,
dan carpenter




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux