[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150323025543.GA2120@thin>
Date: Sun, 22 Mar 2015 19:55:43 -0700
From: Josh Triplett <josh@...htriplett.org>
To: Sanidhya Kashyap <sanidhya.gatech@...il.com>
Cc: reiserfs-devel@...r.kernel.org, linux-kernel@...r.kernel.org,
"Kashyap, Sanidhya" <sanidhya@...ech.edu>
Subject: Re: [PATCH] reiserfs: kstrdup() memory handling
On Sun, Mar 22, 2015 at 08:12:46PM -0400, Sanidhya Kashyap wrote:
> On Sat, Mar 21, 2015 at 1:15 PM, Josh Triplett <josh@...htriplett.org> wrote:
> > On Sat, Mar 21, 2015 at 01:00:13PM -0400, Sanidhya Kashyap wrote:
> >> Checking for ENOMEM even for new_opts in reiserfs_remount function as
> >> there is a possibility of nothing being allocated.
> >
> > You don't need to add a new label; kfree(NULL) is a no-op.
> >
>
> Shall I resubmit the patch?
I would suggest doing so, yes, after you see if anyone else has feedback
on it.
- Josh Triplett
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists