Luiz Fernando Capitulino 704936a25b [PATCH] usbserial: Fixes use-after-free in serial_open().
If the device is disconnected while serial_open() is executing and
either try_module_get() or the device specific open function fails, the
kref_put() call in the 'bailout_kref_put' label will free the memory
pointed out by 'port'.

The subsequent dereferences in the 'bailout_kref_put' label will be
invalid.

The fix is just to assure kref_put() is called after any 'port' usage.

Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-05-12 11:58:09 -07:00
..
2006-04-11 06:18:46 -07:00
2006-05-03 20:05:41 -07:00
2006-04-11 06:18:40 -07:00
2006-04-11 06:18:43 -07:00
2006-05-01 18:17:46 -07:00
2006-05-03 20:05:41 -07:00
2006-03-24 18:23:14 +01:00
2006-04-21 10:59:00 -07:00