aboutsummaryrefslogtreecommitdiffstats
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorXie He <[email protected]>2020-12-31 17:43:31 +0000
committerJakub Kicinski <[email protected]>2021-01-04 21:42:41 +0000
commitb40f97b91a3b167ab22c9e9f1ef00b1615ff01e9 (patch)
tree53ad9a4b54b8276eccedcc4bb643423d4cb760ac /net/switchdev/switchdev.c
parentr8169: work around power-saving bug on some chip versions (diff)
downloadkernel-b40f97b91a3b167ab22c9e9f1ef00b1615ff01e9.tar.gz
kernel-b40f97b91a3b167ab22c9e9f1ef00b1615ff01e9.zip
net: lapb: Decrease the refcount of "struct lapb_cb" in lapb_device_event
In lapb_device_event, lapb_devtostruct is called to get a reference to an object of "struct lapb_cb". lapb_devtostruct increases the refcount of the object and returns a pointer to it. However, we didn't decrease the refcount after we finished using the pointer. This patch fixes this problem. Fixes: a4989fa91110 ("net/lapb: support netdev events") Cc: Martin Schiller <[email protected]> Signed-off-by: Xie He <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions