History

Merge tag 'char-misc-3.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc

Pull char/misc driver fix from Greg KH: "Here is one misc driver fix for 3.17-rc5. It resolves a kernel oops that can happen in the lattice FPGA driver if the firmware isn't present on the system. It's been in the linux-next tree for a while now" * tag 'char-misc-3.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: Lattice ECP3 FPGA: Check firmware pointer

Linus Torvalds committed 12 years ago

Commit 471cff72 parents a6988b3 3f0d97d1 file · +5 −0Browse files

Unified · Split

drivers/misc/lattice-ecp3-config.c+5−0
@@ -79,6 +79,11 @@ static void firmware_load(const struct firmware *fw, void *context) · 78 unmodified lines
7979 u32 jedec_id;
8080 u32 status;
8181
82+ if (fw == NULL) {
83+ dev_err(&spi->dev, "Cannot load firmware, aborting\n");
84+ return;
85+ }
86+
8287 if (fw->size == 0) {
8388 dev_err(&spi->dev, "Error: Firmware size is 0!\n");
8489 return;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t