]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/hwtracing/intel_th/msu.c
intel_th: msu: Release resources on read error
authorLaurent FERT <laurent.fert@intel.com>
Mon, 15 Feb 2016 17:11:57 +0000 (19:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:09:14 +0000 (14:09 -0800)
commit2bed074aade2caa9c350121837c55189a8fd197e
tree58fc1c1a2d93f03461fd702c8ae6c1a0a70e611a
parente4eca2a1c71fda33cd8b5aacc7744176e440f80d
intel_th: msu: Release resources on read error

Right now, reading from msc character device will leak its's user count
on read error.

This patch makes sure resources are released when there is no data left
to read from the buffer.

Signed-off-by: Laurent FERT <laurent.fert@intel.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/intel_th/msu.c