]> git.baikalelectronics.ru Git - kernel.git/commit
cuse: kill connection on initialization error
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 30 Aug 2012 17:24:35 +0000 (19:24 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 30 Aug 2012 17:24:35 +0000 (19:24 +0200)
commitd07abd4f9d9d6a55840493384fa282e3bb147d48
tree22550a9179212937352ab45763c41aa8119f18fc
parentae48f123bdd08b40f370c682caf5df4bcd8154c6
cuse: kill connection on initialization error

Luca Risolia reported that a CUSE daemon will continue to run even if
initialization of the emulated device failes for some reason (e.g. the device
number is already registered by another driver).

This patch disconnects the fuse device on error, which will make the userspace
CUSE daemon exit, albeit without indication about what the problem was.

Reported-by: Luca Risolia <luca.risolia@studio.unibo.it>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/cuse.c