Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devlink: double free in devlink_resource_fill()
Smatch reports that devlink_dpipe_send_and_alloc_skb() frees the skb on error so this is a double free. We fixed a bunch of these bugs in commit 7fe4d6d ("devlink: Remove redundant free on error path") but we accidentally overlooked this one. Fixes: d9f9b9a ("devlink: Add support for resource abstraction") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information