mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
The functions send_rx_ctrl_cmd() in both liquidio/lio_main.c and liquidio/lio_vf_main.c do not check if the call to octeon_alloc_soft_command() fails and returns a null pointer. Both functions also return void so errors are not propagated back to the caller. Fix these issues by updating both instances of send_rx_ctrl_cmd() to return an integer rather than void, and have them return -ENOMEM if an allocation failure occurs. Also update all callers of send_rx_ctrl_cmd() so that they now check the return value. Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Tom Seewald <tseewald@gmail.com> Link: https://lore.kernel.org/r/20210503115736.2104747-66-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
|---|---|---|
| .. | ||
| cn23xx_pf_device.c | ||
| cn23xx_pf_device.h | ||
| cn23xx_pf_regs.h | ||
| cn23xx_vf_device.c | ||
| cn23xx_vf_device.h | ||
| cn23xx_vf_regs.h | ||
| cn66xx_device.c | ||
| cn66xx_device.h | ||
| cn66xx_regs.h | ||
| cn68xx_device.c | ||
| cn68xx_device.h | ||
| cn68xx_regs.h | ||
| lio_core.c | ||
| lio_ethtool.c | ||
| lio_main.c | ||
| lio_vf_main.c | ||
| lio_vf_rep.c | ||
| lio_vf_rep.h | ||
| liquidio_common.h | ||
| liquidio_image.h | ||
| Makefile | ||
| octeon_config.h | ||
| octeon_console.c | ||
| octeon_device.c | ||
| octeon_device.h | ||
| octeon_droq.c | ||
| octeon_droq.h | ||
| octeon_iq.h | ||
| octeon_mailbox.c | ||
| octeon_mailbox.h | ||
| octeon_main.h | ||
| octeon_mem_ops.c | ||
| octeon_mem_ops.h | ||
| octeon_network.h | ||
| octeon_nic.c | ||
| octeon_nic.h | ||
| request_manager.c | ||
| response_manager.c | ||
| response_manager.h | ||