• Roberto Sassu's avatar
    ima: free duplicate measurement memory · 45fae749
    Roberto Sassu authored
    Info about new measurements are cached in the iint for performance.  When
    the inode is flushed from cache, the associated iint is flushed as well.
    Subsequent access to the inode will cause the inode to be re-measured and
    will attempt to add a duplicate entry to the measurement list.
    
    This patch frees the duplicate measurement memory, fixing a memory leak.
    Signed-off-by: default avatarRoberto Sassu <roberto.sassu@polito.it>
    Signed-off-by: default avatarMimi Zohar <zohar@us.ibm.com>
    Cc: stable@vger.kernel.org
    45fae749
ima_queue.c 3.69 KB