OSDN Git Service

net: dcb: Return the correct errno code
authorZheng Yongjun <zhengyongjun3@huawei.com>
Tue, 1 Jun 2021 14:13:58 +0000 (22:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Jun 2021 00:01:33 +0000 (17:01 -0700)
commitb923cda9638860d6fbb688cfc4c939ff13df31b5
treee5f4d54e688ab2ebea1100ea355c17c1df5a3496
parent0a206f9d9e23967639b204094c8dc073eb2997a4
net: dcb: Return the correct errno code

When kalloc or kmemdup failed, should return ENOMEM rather than ENOBUF.

Signed-off-by: Zheng Yongjun <zhengyongjun3@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dcb/dcbnl.c