Fix bug #9581: Dereferencing NULL pointer for omap I2C
authorTony Lindgren <tony@atomide.com>
Sun, 16 Dec 2007 18:17:01 +0000 (10:17 -0800)
committerTony Lindgren <tony@atomide.com>
Sun, 16 Dec 2007 18:17:01 +0000 (10:17 -0800)
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 <marciobuss@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found