lkml.org 
[lkml]   [2011]   [Jul]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] regulator: Fix memory leak in set_machine_constraints() error paths
On Thu, Jul 14, 2011 at 09:29:19PM +0800, Axel Lin wrote:
> static int set_machine_constraints(struct regulator_dev *rdev,
> const struct regulation_constraints *constraints)
> {
> - int ret = 0;
> + int ret;
> struct regulator_ops *ops = rdev->desc->ops;
>

This doesn't look like a leak fix? There's nothing that checks for
other errors here (like null pointers)?


\
 
 \ /
  Last update: 2011-07-15 01:51    [W:0.109 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site