Staging: most: fix dereferencing freed memory
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 28 Jul 2015 15:16:10 +0000 (17:16 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jul 2015 20:43:15 +0000 (13:43 -0700)
commit2e4c30458e31e5f6487d1393254f2ab347cfb02c
treefe4512859dcef47510fc2dae75e4f9376c4312c6
parent7ac5c9f0a0228fff35c0ea85008ff642b07e6db3
Staging: most: fix dereferencing freed memory

This patch fixes the dereferencing of freed memory.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-cdev/cdev.c