staging: most: fix mbo leak
authorChristian Gromm <christian.gromm@microchip.com>
Tue, 22 Dec 2015 09:52:47 +0000 (10:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 01:34:58 +0000 (17:34 -0800)
commit8a742f785bbda4a60288325e42953515c2320b50
tree5a97724d74d31344493a399ecbafda28311e3191
parente6d6cbe303c5cfa581842ce4ba4899ba313931ab
staging: most: fix mbo leak

This patch fixes a potential MBO leak in case function aim_read()
exits right after the MBO has been fetched from kfifo and before
it has been saved to the variable stacked_mbo.

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