Re: [PATCH] staging: greybus: fix possible null-ptr-deref in gb_audio_manager_get_module()

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

 



On Sat, Oct 26, 2024 at 08:11:53AM +0000, Yi Yang wrote:
> The gb_audio_manager_get_module() is EXPORT_SYMBOL, and will return NULL
> when incoming parameter id < 0, fix possible null-ptr-deref by add check
> for return value.
> 
> Fixes: 8db00736d365 ("greybus: audio: Add Audio Manager")
> Signed-off-by: Yi Yang <yiyang13@xxxxxxxxxx>

Where is gb_audio_manager_get_module() called from?  So far as I can see it's
never used.  Why not just delete it?

regards,
dan carpenter





[Index of Archives]     [Linux Driver Development]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux