Zhengchao Shao
0bb5d753c0
hamradio: fix issue of dev reference count leakage in bpq_device_event()
...
[ Upstream commit 85cbaf032d ]
When following tests are performed, it will cause dev reference counting
leakage.
a)ip link add bond2 type bond mode balance-rr
b)ip link set bond2 up
c)ifenslave -f bond2 rose1
d)ip link del bond2
When new bond device is created, the default type of the bond device is
ether. And the bond device is up, bpq_device_event() receives the message
and creates a new bpq device. In this case, the reference count value of
dev is hold once. But after "ifenslave -f bond2 rose1" command is
executed, the type of the bond device is changed to rose. When the bond
device is unregistered, bpq_device_event() will not put the dev reference
count.
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Zhengchao Shao <shaozhengchao@huawei.com >
Signed-off-by: David S. Miller <davem@davemloft.net >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2022-11-25 17:35:35 +01:00
..
2022-11-03 23:49:15 +09:00
2021-11-12 13:18:01 +01:00
2021-12-14 10:04:48 +01:00
2022-11-10 15:46:05 +01:00
2022-08-25 11:09:29 +02:00
2021-11-26 11:48:38 +01:00
2022-09-15 12:39:46 +02:00
2021-09-22 11:43:02 +02:00
2022-09-05 10:23:56 +02:00
2022-01-27 08:47:30 +01:00
2022-05-12 12:14:55 +02:00
2021-05-26 11:29:07 +02:00
2022-10-26 13:15:36 +02:00
2022-10-26 13:15:44 +02:00
2022-06-14 16:52:40 +02:00
2022-07-21 20:40:31 +02:00
2021-11-26 11:48:33 +01:00
2022-04-20 09:06:31 +02:00
2022-10-26 13:15:44 +02:00
2022-02-23 11:56:41 +01:00
2021-07-20 16:21:05 +02:00
2022-05-12 12:14:57 +02:00
2022-10-26 13:15:43 +02:00
2022-07-02 16:17:14 +02:00
2022-11-03 23:49:17 +09:00
2022-11-25 17:35:35 +01:00
2022-10-26 13:15:42 +02:00
2022-09-28 10:55:47 +02:00
2022-09-15 12:39:44 +02:00
2022-04-20 09:06:28 +02:00
2022-11-10 15:46:07 +01:00
2022-10-26 13:15:41 +02:00
2022-10-26 13:15:42 +02:00
2022-10-26 13:15:36 +02:00
2022-10-26 13:15:44 +02:00
2021-10-06 10:23:42 +02:00
2022-08-25 11:09:30 +02:00
2022-11-10 15:46:06 +01:00
2021-07-20 16:21:05 +02:00
2022-05-12 12:14:53 +02:00
2022-08-25 11:09:23 +02:00
2021-10-06 10:23:39 +02:00
2022-08-25 11:09:31 +02:00
2022-11-10 15:46:06 +01:00
2022-10-26 13:15:40 +02:00
2021-11-26 11:48:34 +01:00
2022-10-26 13:15:44 +02:00
2022-08-25 11:09:31 +02:00
2022-11-03 23:49:16 +09:00
2022-06-14 16:52:41 +02:00
2022-11-25 17:35:35 +01:00
2022-11-10 15:46:05 +01:00
2021-03-03 17:44:44 +01:00
2022-10-26 13:15:33 +02:00
2021-10-27 09:33:58 +02:00
2022-07-02 16:17:16 +02:00
2022-11-10 15:46:07 +01:00
2021-09-22 11:43:07 +02:00
2022-10-26 13:15:37 +02:00
2022-06-14 16:52:36 +02:00
2022-05-12 12:14:54 +02:00
2022-08-25 11:09:29 +02:00
2022-10-26 13:15:46 +02:00
2022-07-29 17:05:45 +02:00
2022-10-26 13:15:45 +02:00
2020-12-29 13:45:00 +01:00
2022-04-20 09:06:42 +02:00
2022-06-14 16:52:37 +02:00
2021-05-26 11:29:06 +02:00
2022-10-26 13:15:37 +02:00
2022-04-20 09:06:36 +02:00
2021-07-28 09:14:24 +02:00
2022-06-14 16:52:37 +02:00
2022-06-14 16:52:37 +02:00
2022-09-28 10:55:46 +02:00
2022-10-26 13:15:47 +02:00
2021-11-26 11:48:41 +01:00
2022-10-26 13:15:41 +02:00
2022-10-26 13:15:39 +02:00
2021-07-20 16:20:57 +02:00
2022-11-10 15:46:06 +01:00
2022-02-16 12:43:53 +01:00
2022-10-26 13:15:48 +02:00
2022-11-10 15:46:07 +01:00
2022-11-03 23:49:16 +09:00
2022-08-25 11:09:31 +02:00
2022-06-14 16:52:41 +02:00
2022-11-03 23:49:16 +09:00
2022-07-21 20:40:31 +02:00
2022-04-20 09:06:43 +02:00
2021-11-26 11:48:38 +01:00
2022-11-03 23:49:17 +09:00