From: Johan Hovold Date: Wed, 18 Feb 2015 03:34:52 +0000 (+0700) Subject: USB: serial: fix port attribute-creation race X-Git-Tag: omap-for-v4.1/wl12xx-dt~45^2~2^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2deb96b5d4bb20a33bfaf80e30f38f3433653054;p=pandora-kernel.git USB: serial: fix port attribute-creation race 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 Signed-off-by: Johan Hovold Acked-by: Greg Kroah-Hartman --- Reading git-diff-tree failed