summaryrefslogtreecommitdiffstats
path: root/drivers/of/property.c
diff options
context:
space:
mode:
authorJason Gunthorpe2019-01-09 00:27:06 +0100
committerDavid S. Miller2019-01-09 03:41:40 +0100
commitd972f3dce8d161e2142da0ab1ef25df00e2f21a9 (patch)
tree30b1ba6359a7ec06944d95b9359270a96aa4c82d /drivers/of/property.c
parentMerge branch 'mlxsw-fixes' (diff)
downloadkernel-qcow2-linux-d972f3dce8d161e2142da0ab1ef25df00e2f21a9.tar.gz
kernel-qcow2-linux-d972f3dce8d161e2142da0ab1ef25df00e2f21a9.tar.xz
kernel-qcow2-linux-d972f3dce8d161e2142da0ab1ef25df00e2f21a9.zip
packet: Do not leak dev refcounts on error exit
'dev' is non NULL when the addr_len check triggers so it must goto a label that does the dev_put otherwise dev will have a leaked refcount. This bug causes the ib_ipoib module to become unloadable when using systemd-network as it triggers this check on InfiniBand links. Fixes: 99137b7888f4 ("packet: validate address length") Reported-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Acked-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/of/property.c')
0 files changed, 0 insertions, 0 deletions