]> git.baikalelectronics.ru Git - kernel.git/commit
sparc: fix the return value of module_alloc()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Thu, 20 Sep 2012 18:57:51 +0000 (18:57 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 21 Sep 2012 19:14:20 +0000 (12:14 -0700)
commit471603bfc1678d64643129d48a8997630f8594fc
tree71a06afb1bfb55617f2198235b9948398550b0f1
parentde11fa241f261cc1d46ceb716b5e03aff69a857c
sparc: fix the return value of module_alloc()

In case of error, function module_alloc() in other platform never
returns ERR_PTR(), and all of the user only check for NULL, so
we'd better return NULL instead of ERR_PTR().

dpatch engine is used to auto generated this patch.
(https://github.com/weiyj/dpatch)

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/module.c