]> git.baikalelectronics.ru Git - kernel.git/commit
memstick: core: fix device_register() error handling
authorVasiliy Kulikov <segooon@gmail.com>
Thu, 13 Jan 2011 01:01:00 +0000 (17:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:21 +0000 (08:03 -0800)
commit809ff1e0c201ca176ce2355effdb434d4675c589
tree79e2f43e17934b2e1ec015f6d76cd0b96b0d627d
parent709b6b6db9cbceb3deab8a2c35844b2b2d9313b7
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>
drivers/memstick/core/memstick.c