linux/scripts/mod
Jan Moskyto Matejka 03b56329f9 Modpost: fixed USB alias generation for ranges including 0x9 and 0xA
Commit afe2dab4f6 ("USB: add hex/bcd detection to usb modalias generation")
changed the routine that generates alias ranges. Before that change, only
digits 0-9 were supported; the commit tried to fix the case when the range
includes higher values than 0x9.

Unfortunately, the commit didn't fix the case when the range includes both
0x9 and 0xA, meaning that the final range must look like [x-9A-y] where
x <= 0x9 and y >= 0xA -- instead the [x-9A-x] range was produced.

Modprobe doesn't complain as it sees no difference between no-match and
bad-pattern results of fnmatch().

Fixing this simple bug to fix the aliases.
Also changing the hardcoded beginning of the range to uppercase as all the
other letters are also uppercase in the device version numbers.

Fortunately, this affects only the dvb-usb-dib0700 module, AFAIK.

Signed-off-by: Jan Moskyto Matejka <mq@suse.cz>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-02-07 11:26:35 -08:00
..
.gitignore mod/file2alias: make modalias generation safe for cross compiling 2013-01-24 22:48:04 +01:00
devicetable-offsets.c rapidio: add udev notification 2013-07-03 16:08:05 -07:00
empty.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
file2alias.c Modpost: fixed USB alias generation for ranges including 0x9 and 0xA 2014-02-07 11:26:35 -08:00
Makefile improve modalias building 2013-06-28 00:48:16 +02:00
mk_elfconfig.c module: make MODULE_SYMBOL_PREFIX into a CONFIG option 2009-12-15 16:28:26 +10:30
modpost.c powerpc: Add vr save/restore functions 2014-01-15 13:46:43 +11:00
modpost.h modpost: Fix modpost license checking of vmlinux.o 2012-04-09 20:52:56 -07:00
sumversion.c kbuild: replace unbounded sprintf call in modpost 2013-11-06 22:30:03 +01:00