diff options
| author | Tom Rix <[email protected]> | 2020-06-27 13:32:42 +0000 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-06-30 01:34:35 +0000 |
| commit | 5aee52c44d9170591df65fafa1cd408acc1225ce (patch) | |
| tree | a5806e52c145d28172236607f59e6d0490403af9 /drivers/usb/cdns3/cdns3-pci-wrap.c | |
| parent | scsi: mptfusion: Don't use GFP_ATOMIC for larger DMA allocations (diff) | |
| download | kernel-5aee52c44d9170591df65fafa1cd408acc1225ce.tar.gz kernel-5aee52c44d9170591df65fafa1cd408acc1225ce.zip | |
scsi: scsi_transport_spi: Fix function pointer check
clang static analysis flags several null function pointer problems.
drivers/scsi/scsi_transport_spi.c:374:1: warning: Called function pointer is null (null dereference) [core.CallAndMessage]
spi_transport_max_attr(offset, "%d\n");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Reviewing the store_spi_store_max macro
if (i->f->set_##field)
return -EINVAL;
should be
if (!i->f->set_##field)
return -EINVAL;
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: James Bottomley <[email protected]>
Signed-off-by: Tom Rix <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions
