]> git.baikalelectronics.ru Git - kernel.git/commit
appletalk: Fix atalk_proc_init() return path
authorVincent Duvert <vincent.ldev@duvert.net>
Sun, 2 Aug 2020 05:06:51 +0000 (07:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 22:48:32 +0000 (15:48 -0700)
commitc21c5ad484901ba53b1b84cfed1090517205ace4
tree6519151b17e16f93d0ae81ce08a7ba962c046297
parent89bb54499c0580c45c1dc2b54c9b53031b9d1745
appletalk: Fix atalk_proc_init() return path

Add a missing return statement to atalk_proc_init so it doesn't return
-ENOMEM when successful.  This allows the appletalk module to load
properly.

Fixes: 49393a3114bd ("appletalk: use remove_proc_subtree to simplify procfs code")
Link: https://www.downtowndougbrown.com/2020/08/hacking-up-a-fix-for-the-broken-appletalk-kernel-module-in-linux-5-1-and-newer/
Reported-by: Christopher KOBAYASHI <chris@disavowed.jp>
Reported-by: Doug Brown <doug@downtowndougbrown.com>
Signed-off-by: Vincent Duvert <vincent.ldev@duvert.net>
[lukas: add missing tags]
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Cc: stable@vger.kernel.org # v5.1+
Cc: Yue Haibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/appletalk/atalk_proc.c