devlink: Fix resource coverity errors
authorArkadi Sharshevsky <arkadis@mellanox.com>
Mon, 26 Feb 2018 16:25:42 +0000 (18:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 16:16:42 +0000 (11:16 -0500)
commit3d18e4f19f37062a0f2cbcf3ac17eaabdde04704
tree704df885a5cfd25ce6a285f86c589bf07a43e560
parentc7272c2f1229125f74f22dcdd59de9bbd804f1c8
devlink: Fix resource coverity errors

Fix resource coverity errors.

Fixes: d9f9b9a4d05f ("devlink: Add support for resource abstraction")
Signed-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c