Revision 6b517374f4ea5a3c6e307e1219ec5f35d42e6d00 authored by Vishal Kulkarni on 03 October 2019, 22:36:15 UTC, committed by David S. Miller on 04 October 2019, 21:42:13 UTC
When fetching free MSI-X vectors for ULDs, check for the error code
before accessing MSI-X info array. Otherwise, an out-of-bounds access is
attempted, which results in kernel panic.

Fixes: 94cdb8bb993a ("cxgb4: Add support for dynamic allocation of resources for ULD")
Signed-off-by: Shahjada Abul Husain <shahjada@chelsio.com>
Signed-off-by: Vishal Kulkarni <vishal@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 8ae72cb
History
File Mode Size
Makefile -rw-r--r-- 271 bytes
af_netrom.c -rw-r--r-- 32.4 KB
nr_dev.c -rw-r--r-- 3.7 KB
nr_in.c -rw-r--r-- 6.8 KB
nr_loopback.c -rw-r--r-- 1.6 KB
nr_out.c -rw-r--r-- 5.7 KB
nr_route.c -rw-r--r-- 21.6 KB
nr_subr.c -rw-r--r-- 5.9 KB
nr_timer.c -rw-r--r-- 5.2 KB
sysctl_net_netrom.c -rw-r--r-- 4.0 KB

back to top