linux-stable/drivers/net/ethernet/ti/icssg
Dan Carpenter 94b00cd6b8 net: ti: icssg-prueth: Fix signedness bug in prueth_init_rx_chns()
[ Upstream commit 4dcd0e83ea ]

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: 128d5874c0 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-05-02 16:32:39 +02:00
..
icss_iep.c net: ti: icss-iep: fix setting counter value 2023-11-20 11:59:37 +01:00
icss_iep.h net: ti: icssg-prueth: am65x SR2.0 add 10M full duplex support 2023-08-27 07:13:24 +01:00
icssg_classifier.c net: ti: icssg-prueth: Add Firmware config and classification APIs. 2023-08-02 10:38:11 +01:00
icssg_config.c net: ti: icssg-prueth: Fix r30 CMDs bitmasks 2023-10-19 09:04:43 -07:00
icssg_config.h net: ti: icssg-prueth: Add Firmware config and classification APIs. 2023-08-02 10:38:11 +01:00
icssg_ethtool.c net: ti: icssg-prueth: add packet timestamping and ptp support 2023-08-27 07:13:23 +01:00
icssg_mii_cfg.c
icssg_mii_rt.h
icssg_prueth.c net: ti: icssg-prueth: Fix signedness bug in prueth_init_rx_chns() 2024-05-02 16:32:39 +02:00
icssg_prueth.h net: ti: icssg-prueth: am65x SR2.0 add 10M full duplex support 2023-08-27 07:13:24 +01:00
icssg_queues.c net: ti: icssg-prueth: Add icssg queues APIs and macros 2023-08-02 10:38:11 +01:00
icssg_stats.c net: ti: icssg-prueth: Fix tx_total_bytes count 2023-10-13 17:32:19 -07:00
icssg_stats.h net: ti: icssg-prueth: Add ICSSG Stats 2023-08-02 10:38:11 +01:00
icssg_switch_map.h