[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <C8381D61.38957%scofeldm@cisco.com>
Date: Fri, 11 Jun 2010 17:05:37 -0700
From: Scott Feldman <scofeldm@...co.com>
To: Dan Carpenter <error27@...il.com>
CC: Vasanthy Kolluri <vkolluri@...co.com>,
Roopa Prabhu <roprabhu@...co.com>, <netdev@...r.kernel.org>,
<kernel-janitors@...r.kernel.org>
Subject: Re: [patch] enic: cleanup vic_provinfo_alloc()
On 6/10/10 12:59 AM, "Dan Carpenter" <error27@...il.com> wrote:
> If oui were a null variable then vic_provinfo_alloc() would leak memory.
> But this function is only called from one place and oui is not null so
> I removed the check.
>
> I also moved the memory allocation down a line so it was easier to spot.
> (No one ever reads variable declarations).
>
> Signed-off-by: Dan Carpenter <error27@...il.com>
We'll pick this one up and resubmit with the next enic patch bomb. Thanks
Dan.
-scott
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists