Re: [PATCH] net: wan/lmc: unregister device when no matching device is found

2021-02-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (refs/heads/master): On Mon, 15 Feb 2021 14:17:56 -0500 you wrote: > lmc set sc->lmc_media pointer when there is a matching device. > However, when no matching device is found, this pointer is NULL > and the following dereference will result in a nu

[PATCH] net: wan/lmc: unregister device when no matching device is found

2021-02-15 Thread Tong Zhang
lmc set sc->lmc_media pointer when there is a matching device. However, when no matching device is found, this pointer is NULL and the following dereference will result in a null-ptr-deref. To fix this issue, unregister the hdlc device and return an error. [4.569359] BUG: KASAN: null-ptr-dere