From: Wei Yongjun Date: Thu, 20 Sep 2012 18:57:51 +0000 (+0000) Subject: sparc: fix the return value of module_alloc() X-Git-Tag: v3.6-rc7~11^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9e8d1a6b87167116e5779378f1d25ffed2e833b;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed