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)
commit3f0d97d97f2b539cf9ac746be4ec097259e6a8d0
treeabdaa471dee67507343ac4f4586306003e5e4e0c
parent69e273c0b0a3c337a521d083374c918dc52c666f
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