staging: gdm72xx: potential use after free in send_qos_list()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 22 Jul 2013 08:00:53 +0000 (11:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Jul 2013 22:08:50 +0000 (15:08 -0700)
commitf2a6fed1ceaecf6054627f0ddbd4becf43c997fc
treed3c8b786a76aa3305ada0efb3b93368eaec688e3
parent3a349cee593a464b25f329a1b76635900187fdb0
staging: gdm72xx: potential use after free in send_qos_list()

Sometimes free_qos_entry() sometimes frees its argument.  I have moved
the dereference of "entry" ahead on line to avoid a use after free.

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