Searched hist:"1 cbc36a53b60d43daa686280385b1ddbe51d5809" (Results 1 – 1 of 1) sorted by relevance
/linux/net/sched/ |
H A D | cls_flower.c | diff 1cbc36a53b60d43daa686280385b1ddbe51d5809 Fri Aug 03 21:27:55 CEST 2018 Dan Carpenter <dan.carpenter@oracle.com> net: sched: cls_flower: Fix an error code in fl_tmplt_create()
We forgot to set the error code on this path, so we return NULL instead of an error pointer. In the current code kzalloc() won't fail for small allocations so this doesn't really affect runtime.
Fixes: b95ec7eb3b4d ("net: sched: cls_flower: implement chain templates") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|