]> git.baikalelectronics.ru Git - kernel.git/commit
ipmi: kcs: Fix aspeed_kcs_probe_of_v1()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 7 Apr 2020 12:21:49 +0000 (15:21 +0300)
committerCorey Minyard <cminyard@mvista.com>
Tue, 7 Apr 2020 13:35:40 +0000 (08:35 -0500)
commite9dc4229a2732e4397183e919a94603ef95f5490
tree067731fcc2a31f55f131fb291bb74dbf63598878
parent2deb8704d0f83a5cdf54b392389d054b2c79f00a
ipmi: kcs: Fix aspeed_kcs_probe_of_v1()

This needs to return the newly allocated struct but instead it returns
zero which leads to an immediate Oops in the caller.

Fixes: b5b13d87eb28 ("ipmi: kcs: aspeed: Implement v2 bindings")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Message-Id: <20200407122149.GA100026@mwanda>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
drivers/char/ipmi/kcs_bmc_aspeed.c