]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
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)
commitbcebb6e7fbeb63d61cce760d8599294f712d2ced
tree647a47de362667e24ca1e0718c8aca243fae1d9a
parent19932ac133b7e0b44bfc7a0ed0361f1fa093d915
Fix bug #9581: Dereferencing NULL pointer for omap I2C

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>
drivers/i2c/busses/i2c-omap.c