From: Levente Kurusa Date: Thu, 30 Jan 2014 23:45:45 +0000 (-0800) Subject: drivers/video/backlight/lcd.c: call put_device if device_register fails X-Git-Tag: v3.14-rc1~32^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54f5968db9e09de8779b5a5174719af51f1da199;p=pandora-kernel.git drivers/video/backlight/lcd.c: call put_device if device_register fails Currently we kfree the container of the device which failed to register. This is wrong as the last reference is not given up with a put_device call. Also, now that we have put_device() callen, we no longer need the kfree as the new_ld->dev.release function will take care of kfreeing the associated memory. Signed-off-by: Levente Kurusa Acked-by: Jingoo Han Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed