serial: icom: dereference after free in load_code()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Nov 2013 09:53:48 +0000 (12:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Dec 2013 01:16:05 +0000 (17:16 -0800)
commitd6a62b3b7eb1a000718f8ecac0c31eaa1e1f1187
treee29d5ea8d446e97034143ae4f8fcd1a93eb829d1
parent50a22ba07453e242668cfc4f312602cc8165cde5
serial: icom: dereference after free in load_code()

We use "fw" in the next line after we release it.  I've shifted the call
to release_firmware() down a couple lines to fix this.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/icom.c