From: Levente Kurusa Date: Thu, 30 Jan 2014 23:45:46 +0000 (-0800) Subject: drivers/net/phy/mdio_bus.c: call put_device on device_register() failure X-Git-Tag: v3.14-rc1~32^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c692d07842a67d9aa6b8266a80e4ac460a5c1a2;p=pandora-kernel.git drivers/net/phy/mdio_bus.c: call put_device on device_register() failure It is required to call put_device() if device_register() fails, so that we give up the last reference to the device. Calling put_device allows for mdiobus_release to be executed, kfreeing the bus. Signed-off-by: Levente Kurusa Cc: Greg Kroah-Hartman Cc: Grant Likely Cc: David Daney Cc: David S. Miller Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed