commit | 0193383a5833c1f082c738eaca868e4093a8df39 | [log] [tgz] |
---|---|---|
author | Vasiliy Kulikov <segooon@gmail.com> | Wed Jan 12 17:01:00 2011 -0800 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Thu Jan 13 08:03:21 2011 -0800 |
tree | 79e2f43e17934b2e1ec015f6d76cd0b96b0d627d | |
parent | 563558b2c7350371551bf08348ac61be62200505 [diff] |
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 <segooon@gmail.com> Cc: Maxim Levitsky <maximlevitsky@gmail.com> Cc: Alex Dubov <oakad@yahoo.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>