USB: serial: sierra driver sierra_calc_num_ports() fix
authorElina Pasheva <epasheva@sierrawireless.com>
Tue, 12 May 2009 20:12:54 +0000 (13:12 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Jun 2009 04:44:45 +0000 (21:44 -0700)
commit9636b683769a6c3acfe121314ee9d7e19157f109
tree4355b5ef7afc7f000ae4e18659bde41c4164f315
parentc76a23da8e9a39222c4a7c29b0c5348cd8902a2b
USB: serial: sierra driver sierra_calc_num_ports() fix

- Removed potential kernel oops from sierra_calc_num_ports() function.
  Calling this function twice would likely have caused an oops because
  the function releases allocated memory after the first call.
- Modified sierra_probe() function to reflect the changes in
  sierra_calc_num_ports().

Signed-off-by: Elina Pasheva <epasheva@sierrawireless.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/sierra.c