USB: fix mos7840 problem with minor numbers
commitc5867ee54f6b42a56af99ddc233caa41760fb8fe
authorTony Cook <tony-cook@bigpond.com>
Tue, 8 Dec 2009 22:25:47 +0000 (8 23:25 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 18 Dec 2009 21:30:59 +0000 (18 13:30 -0800)
tree09d025c4c110f9359f8849f61af48f00c59a506e
parent89af7ec4eabe69cfe47d3975668d43d94d24f6c9
USB: fix mos7840 problem with minor numbers

commit 37768adf9a1d49aeac0db1ba3dc28b3274b7b789 upstream

This patch fixes a problem with any mos7840 device where the use of the
field "minor" before it is initialised results in all the devices being
overlaid in memory (minor = 0 for all instances)

Contributed by: Phillip Branch

Backported to .27 by Christoph Biedl <linux-kernel.bfrz@manchmal.in-ulm.de>

Signed-off-by: Tony Cook <tony-cook@bigpond.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/mos7840.c