]> git.baikalelectronics.ru Git - kernel.git/commit
net: ixp4xx_hss: drop kfree for memory allocated with devm_kzalloc
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 30 Nov 2021 10:48:40 +0000 (10:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 Nov 2021 12:40:22 +0000 (12:40 +0000)
commit1e5aa02a3bb748f7fd5cffaf65a8a93c55acbff6
treed145e9f40771b881640cbb2fe7c90627b27757cb
parent94695e42ff3f54c5d03ae11a25443e239d598b23
net: ixp4xx_hss: drop kfree for memory allocated with devm_kzalloc

It's not necessary to free memory allocated with devm_kzalloc
and using kfree leads to a double free.

Fixes: 20ae8dd7ed2f ("net: ixp4xx_hss: Convert to use DT probing")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/ixp4xx_hss.c