Re: [PATCH net-next] net: sched: cls_flower: Fix an error code in fl_tmplt_create()

2018-08-05 Thread David Miller
From: Dan Carpenter Date: Fri, 3 Aug 2018 22:27:55 +0300 > 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:

[PATCH net-next] net: sched: cls_flower: Fix an error code in fl_tmplt_create()

2018-08-03 Thread Dan Carpenter
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