summaryrefslogtreecommitdiff
path: root/drivers/auxdisplay/Kconfig
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2016-12-02 19:23:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-11 11:14:19 +0300
commit0fa2c8eb270413160557babda519aa3c21e2bfaf (patch)
tree13a8718095bdd9da919dad07249210b2f414f118 /drivers/auxdisplay/Kconfig
parent5b11ebedd6a8bb4271b796e498cd15c0fe1133b6 (diff)
downloadlinux-0fa2c8eb270413160557babda519aa3c21e2bfaf.tar.xz
ppdev: don't print a free'd string
A previous fix of a memory leak now prints the string 'name' that was previously free'd. Fix this by free'ing the string at the end of the function and adding an error exit path for the error conditions. CoverityScan CID#1384523 ("Use after free") Fixes: 2bd362d5f45c1 ("ppdev: fix memory leak") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/auxdisplay/Kconfig')
0 files changed, 0 insertions, 0 deletions