summaryrefslogtreecommitdiffstats
path: root/include/net/macsec.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2024-04-23 18:15:22 +0200
committerJakub Kicinski <kuba@kernel.org>2024-04-25 17:20:54 +0200
commit4dcd0e83ea1d1df9b2e0174a6d3e795b3477d64e (patch)
treec5b9827995a996c98908967ee6fc8c9f5d1eeaac /include/net/macsec.h
parentMerge tag 'wireless-2024-04-23' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadlinux-4dcd0e83ea1d1df9b2e0174a6d3e795b3477d64e.tar.xz
linux-4dcd0e83ea1d1df9b2e0174a6d3e795b3477d64e.zip
net: ti: icssg-prueth: Fix signedness bug in prueth_init_rx_chns()
The rx_chn->irq[] array is unsigned int but it should be signed for the error handling to work. Also if k3_udma_glue_rx_get_irq() returns zero then we should return -ENXIO instead of success. Fixes: 128d5874c082 ("net: ti: icssg-prueth: Add ICSSG ethernet driver") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Roger Quadros <rogerq@kernel.org> Reviewed-by: MD Danish Anwar <danishanwar@ti.com> Link: https://lore.kernel.org/r/05282415-e7f4-42f3-99f8-32fde8f30936@moroto.mountain Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions