devlink: fix return value check in devlink_dpipe_header_put()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 11 Apr 2017 16:02:02 +0000 (16:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Apr 2017 18:53:32 +0000 (14:53 -0400)
commitcb6bf9cfdb5e26dfb7eb9b955b2f24d82703e27d
tree211aede56eea4fb56b24798bccff384e7a0180b5
parentb46b99d785eb5964dad04c3aee9431d9c9e4aafa
devlink: fix return value check in devlink_dpipe_header_put()

Fix the return value check which testing the wrong variable
in devlink_dpipe_header_put().

Fixes: 1555d204e743 ("devlink: Support for pipeline debug (dpipe)")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c