USB: serial: fix port attribute-creation race
authorJohan Hovold <johan@kernel.org>
Wed, 18 Feb 2015 03:34:52 +0000 (10:34 +0700)
committerJohan Hovold <johan@kernel.org>
Thu, 26 Feb 2015 16:12:46 +0000 (17:12 +0100)
Fix attribute-creation race with userspace by using the port device
groups field to create the port attributes.

Also use %u when printing the port number, which is unsigned, even
though we do not currently support more than 128 ports per device.

Reported-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Johan Hovold <johan@kernel.org>
Acked-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/serial/bus.c
drivers/usb/serial/usb-serial.c

Simple merge
Simple merge