android_kernel_google_msm/firmware
Nicolas Iooss 241cb82322 firmware/ihex2fw.c: restore missing default in switch statement
commit d43698e8abb58a6ac47d16e0f47bb55f452e4fc4 upstream.

Commit 2473238eac ("ihex: add support for CS:IP/EIP records") removes
the "default:" statement in the switch block, making the "return
usage();" line dead code and ihex2fw silently ignoring unknown options.
Restore this statement.

This bug was found by building with HOSTCC=clang and adding
-Wunreachable-code-return to HOSTCFLAGS.

Fixes: 2473238eac ("ihex: add support for CS:IP/EIP records")
Signed-off-by: Nicolas Iooss <nicolas.iooss_linux@m4x.org>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Zefan Li <lizefan@huawei.com>
2015-09-18 09:20:31 +08:00
..
3com
acenic
adaptec
advansys
av7110
bnx2 bnx2: Update firmware and version 2011-03-14 15:00:12 -07:00
bnx2x bnx2x: Update firmware to 6.2.9 2011-03-31 17:03:36 -07:00
cis
cpia2
cxgb3
dabusb
dsp56k
e100
edgeport
emi26
emi62
ess
kaweth
keyspan
keyspan_pda Update broken web addresses in the kernel. 2010-10-18 11:03:14 +02:00
korg
matrox
myricom
ositech
qlogic
r128
radeon
sb16
sun
tehuti
tigon
ttusb-budget
vicam
yam
yamaha
.gitignore
Makefile [SCSI] isci, firmware: Remove isci fallback parameter blob and generator 2012-01-16 11:34:37 +04:00
README.AddingFirmware firmware: Refer to the co-maintained linux-firmware.git repository 2011-12-20 20:14:02 -08:00
WHENCE bnx2x: Update firmware to 6.2.9 2011-03-31 17:03:36 -07:00
atmsar11.HEX
ihex2fw.c firmware/ihex2fw.c: restore missing default in switch statement 2015-09-18 09:20:31 +08:00
intelliport2.bin.ihex
mts_cdma.fw.ihex
mts_edge.fw.ihex
mts_gsm.fw.ihex
ti_3410.fw.ihex
ti_5052.fw.ihex
tr_smctr.bin.ihex
whiteheat.HEX
whiteheat_loader.HEX
whiteheat_loader_debug.HEX

README.AddingFirmware

	DO NOT ADD FIRMWARE TO THIS DIRECTORY.
	======================================

This directory is only here to contain firmware images extracted from old
device drivers which predate the common use of request_firmware().

As we update those drivers to use request_firmware() and keep a clean
separation between code and firmware, we put the extracted firmware
here.

This directory is _NOT_ for adding arbitrary new firmware images. The
place to add those is the separate linux-firmware repository:

    git://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git

That repository contains all these firmware images which have been
extracted from older drivers, as well various new firmware images which
we were never permitted to include in a GPL'd work, but which we _have_
been permitted to redistribute under separate cover.

To submit firmware to that repository, please send either a git binary
diff or preferably a git pull request to:
      David Woodhouse <dwmw2@infradead.org>
      Ben Hutchings <ben@decadent.org.uk>

Your commit should include an update to the WHENCE file clearly
identifying the licence under which the firmware is available, and
that it is redistributable. If the licence is long and involved, it's
permitted to include it in a separate file and refer to it from the
WHENCE file.

Ideally, your commit should contain a Signed-Off-By: from someone
authoritative on the licensing of the firmware in question (i.e. from
within the company that owns the code).