From: Tony Lindgren Date: Mon, 14 Jan 2008 20:53:30 +0000 (+0100) Subject: i2c-omap: Fix NULL pointer dereferencing X-Git-Tag: v2.6.24-rc8~12^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e39752d5367f9087e058abe768708165e1ec373;p=pandora-kernel.git i2c-omap: Fix NULL pointer dereferencing This patch fixes bug #9581 reported by Marcio Buss. If kzalloc fails, omap_i2c_write_reg() tries to reset an unallocated I2C controller. Cc: Marcio Buss Signed-off-by: Tony Lindgren Signed-off-by: Jean Delvare --- Reading git-diff-tree failed