Skip to content
Commit 3e39752d authored by Tony Lindgren's avatar Tony Lindgren Committed by Jean Delvare
Browse files

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 <marciobuss@gmail.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 1a1b285c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment