From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Colin King <colin.king@canonical.com>
Cc: Sudip Mukherjee <sudipm.mukherjee@gmail.com>,
Arnd Bergmann <arnd@arndb.de>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ppdev: don't print a free'd string
Date: Tue, 6 Dec 2016 11:51:38 +0100 [thread overview]
Message-ID: <20161206105138.GA10275@kroah.com> (raw)
In-Reply-To: <20161202162355.25470-1-colin.king@canonical.com>
On Fri, Dec 02, 2016 at 04:23:55PM +0000, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> 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>
> ---
> drivers/char/ppdev.c | 13 ++++++++-----
> 1 file changed, 8 insertions(+), 5 deletions(-)
Sudip, any thoughts?
next prev parent reply other threads:[~2016-12-06 10:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-02 16:23 [PATCH] ppdev: don't print a free'd string Colin King
2016-12-06 10:51 ` Greg Kroah-Hartman [this message]
2016-12-08 22:13 ` Sudip Mukherjee
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20161206105138.GA10275@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=arnd@arndb.de \
--cc=colin.king@canonical.com \
--cc=linux-kernel@vger.kernel.org \
--cc=sudipm.mukherjee@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox