]> git.baikalelectronics.ru Git - kernel.git/commit
Lattice ECP3 FPGA: Check firmware pointer
authorJean-Michel Hautbois <jean-michel.hautbois@vodalys.com>
Tue, 5 Aug 2014 16:19:37 +0000 (18:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 21:38:14 +0000 (14:38 -0700)
commit6108930cf1ba1f967c651e92e00ab84583687f8e
treeabdaa471dee67507343ac4f4586306003e5e4e0c
parent2e5c8ca83cd8c7326618ad75fd27258ed226d7b9
Lattice ECP3 FPGA: Check firmware pointer

This patch corrects a lack of testing.
If fw is NULL when calling firmware_load(), it results in a kernel oops.

Signed-off-by: Jean-Michel Hautbois <jean-michel.hautbois@vodalys.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/lattice-ecp3-config.c