Commit 7b027970 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan Committed by Dmitry Shmidt
Browse files

misc: uidstat: change release handler for stat read operation



A kmalloced object in the file opening path is not kfreed in the
closing path.

In the struct file_operations, the open operation is assigned to
single_open while release is assigned to seq_release. single_open
internally allocates memory dynamically for an object  of type
seq_operations which is subsequently not freed in the release call
to seq_release.

Fix this by calling single_release which correctly frees this
memory allocated in the open call.

Change-Id: I3ea677be301244638e3843834c46988ad999ed88
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
(cherry picked from commit 85bee652)
parent 41f4836e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment