summaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorWei Yongjun2016-11-01 15:45:52 +0100
committerDavid S. Miller2016-11-01 17:13:13 +0100
commit22ca904ad70afc831d8503e80be1b6558a978759 (patch)
treeaa27f53e2b2eab9a82c4ab00b53e02430a3339c5 /net/bridge
parentnet: Enable support for VRF with ipv4 multicast (diff)
downloadkernel-qcow2-linux-22ca904ad70afc831d8503e80be1b6558a978759.tar.gz
kernel-qcow2-linux-22ca904ad70afc831d8503e80be1b6558a978759.tar.xz
kernel-qcow2-linux-22ca904ad70afc831d8503e80be1b6558a978759.zip
genetlink: fix error return code in genl_register_family()
Fix to return a negative error code from the idr_alloc() error handling case instead of 0, as done elsewhere in this function. Also fix the return value check of idr_alloc() since idr_alloc return negative errors on failure, not zero. Fixes: 2ae0f17df1cd ("genetlink: use idr to track families") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge')
0 files changed, 0 insertions, 0 deletions