From: Vasiliy Kulikov Date: Wed, 19 Jan 2011 12:57:22 +0000 (+0300) Subject: OMAP: PM: SmartReflex: fix potential NULL dereference X-Git-Tag: v2.6.39-rc1~432^2~11^2~17 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c56f32e80ac8ea9878a0a5eb9ca99c703e953ab;p=pandora-kernel.git OMAP: PM: SmartReflex: fix potential NULL dereference kzalloc() may fail, if so return -ENOMEM. Also Walter Harms suggested to use kasprintf() instead of kzalloc+strcpy+strcat. Signed-off-by: Vasiliy Kulikov Signed-off-by: Kevin Hilman --- Reading git-diff-tree failed