From: Vasiliy Kulikov Date: Thu, 13 Jan 2011 01:01:00 +0000 (-0800) Subject: memstick: core: fix device_register() error handling X-Git-Tag: v2.6.38-rc1~278 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0193383a5833c1f082c738eaca868e4093a8df39;p=pandora-kernel.git memstick: core: fix device_register() error handling If device_register() fails then call put_device(). See comment to device_register. Signed-off-by: Vasiliy Kulikov Cc: Maxim Levitsky Cc: Alex Dubov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed