staging: unisys: use after free in error messages
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 10 Apr 2014 09:36:13 +0000 (12:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Apr 2014 18:41:44 +0000 (11:41 -0700)
commitd21bb45081484b95fb0c80f1afa492a7275689c2
treeb654756bf0b4e5658b62880093fc68a0124d06a3
parentef35a4f44bdc6f8c9f99a561fd1fd318305a4d98
staging: unisys: use after free in error messages

We dereference "bus" when we report the error so we have to move the
kfree() down a couple lines.

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