misc: mic: use after free printing error message
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 12 Feb 2016 06:40:26 +0000 (09:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Feb 2016 01:42:37 +0000 (17:42 -0800)
commit6ddf2f0cb1e1931d16e08e30130ed04e5a441f2c
tree704e08f879fb6b9f57e9b99f5603f144f0031778
parent1b79dff672ca09a5461cc1d46ad81c62137841c5
misc: mic: use after free printing error message

Swap the printk and kfree() to avoid a use after free bug.

Fixes: 61e9c905df78 ('misc: mic: Enable VOP host side functionality')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/mic/vop/vop_vringh.c