Searched hist:"22 ce97fe49b5522e0f97b7c2282ed71a1abd7410" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/net/sched/ |
H A D | sch_mqprio.c | diff 22ce97fe49b5522e0f97b7c2282ed71a1abd7410 Tue Oct 17 10:01:30 CDT 2017 Colin Ian King <colin.king@canonical.com> mqprio: fix potential null pointer dereference on opt
The pointer opt has a null check however before for this check opt is dereferenced when len is initialized, hence we potentially have a null pointer deference on opt. Avoid this by checking for a null opt before dereferencing it.
Detected by CoverityScan, CID#1458234 ("Dereference before null check")
Fixes: 4e8b86c06269 ("mqprio: Introduce new hardware offload mode and shaper in mqprio") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|