Re: [PATCH net] net: bridge: Fix a warning when del bridge sysfs

2020-12-03 Thread wanghai (M)
在 2020/12/3 18:34, Nikolay Aleksandrov 写道: On 03/12/2020 03:03, Jakub Kicinski wrote: On Tue, 1 Dec 2020 22:01:14 +0800 Wang Hai wrote: If adding bridge sysfs fails, br->ifobj will be NULL, there is no need to delete its non-existent sysfs when deleting the bridge device, otherwise, it will

Re: [PATCH net] net: bridge: Fix a warning when del bridge sysfs

2020-12-03 Thread Nikolay Aleksandrov
On 03/12/2020 03:03, Jakub Kicinski wrote: > On Tue, 1 Dec 2020 22:01:14 +0800 Wang Hai wrote: >> If adding bridge sysfs fails, br->ifobj will be NULL, there is no >> need to delete its non-existent sysfs when deleting the bridge device, >> otherwise, it will cause a warning. So, when br->ifobj ==

Re: [PATCH net] net: bridge: Fix a warning when del bridge sysfs

2020-12-02 Thread Jakub Kicinski
On Tue, 1 Dec 2020 22:01:14 +0800 Wang Hai wrote: > If adding bridge sysfs fails, br->ifobj will be NULL, there is no > need to delete its non-existent sysfs when deleting the bridge device, > otherwise, it will cause a warning. So, when br->ifobj == NULL, > directly return can fix this bug. > >