commit | 1cbc36a53b60d43daa686280385b1ddbe51d5809 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Fri Aug 03 22:27:55 2018 +0300 |
committer | David S. Miller <davem@davemloft.net> | Sun Aug 05 17:25:46 2018 -0700 |
tree | adfdb3fc156c6637821afc9c2705e23e1fcd4c15 | |
parent | a6bcfc89694ed8cb482a82cdc8b93aae63a8b691 [diff] |
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>