From: Jan Kara Date: Fri, 13 Feb 2015 22:36:47 +0000 (-0800) Subject: lib/genalloc.c: check result of devres_alloc() X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~91^2~90 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=310ee9e8f370f8fd7a76856726aea88839bb0f8f;p=pandora-kernel.git lib/genalloc.c: check result of devres_alloc() devm_gen_pool_create() calls devres_alloc() and dereferences its result without checking whether devres_alloc() succeeded. Check for error and bail out if it happened. Coverity-id 1016493. Signed-off-by: Jan Kara Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed