> Dont know if it's same bug as BUG 10341. I just describe the problem
> in bug 10341:
>
> While a rfcomm device is opened more than once, the BUG 10341 can be triggered.
>
> rfcomm dev reference will be held for every rfcomm_tty_open, but release_dev
> will hangup the tty and release the dev number for free use without
> judge the dev->opened.
>
> rfcomm_dev_state_change and rfcomm_tty_hangup could del the rfcomm dev
> as well, the problem is similar as above.
>
> If the create_dev called before the last tty_close, sysfs will
> warning and create will fail.
>
> I have a patch which don't hold the dev reference in rfcomm_tty_open,
> but it need some review and test.
>
> please see:
>
http://bugzilla.kernel.org/attachment.cgi?id=15746
>
> Marcel, do you have idea about this? or other solution?