uio: uio_pruss: Fix potential NULL pointer dereference
authorEmil Goode <emilgoode@gmail.com>
Thu, 6 Jun 2013 13:55:28 +0000 (15:55 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Jun 2013 19:54:09 +0000 (12:54 -0700)
commitcb3771b049b3b554455094a3b06d8ceb07086e06
treef84159048eb643098e6aff063c306d635fc48ea1
parentfd5c25614012ccad75ef505982af4d6c08d0df83
uio: uio_pruss: Fix potential NULL pointer dereference

In function pruss_probe we free gdev and try to use
it on the next line. I have moved the dereference to
above the kfree of gdev.

Signed-off-by: Emil Goode <emilgoode@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/uio/uio_pruss.c