[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200904272008.50268.david-b@pacbell.net>
Date: Mon, 27 Apr 2009 20:08:50 -0700
From: David Brownell <david-b@...bell.net>
To: Paul Walmsley <paul@...an.com>
Cc: linux-omap@...r.kernel.org, lrg@...mlogic.co.uk,
broonie@...nsource.wolfsonmicro.com, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] regulator core: fix double-free in regulator_register() error path
On Saturday 25 April 2009, Paul Walmsley wrote:
>
> > device_unregister() calls regulator_dev_release() which frees rdev. The
> > subsequent kfree corrupts memory and causes some OMAP3 systems to oops on
> > boot in regulator_get().
>
> For the 3430SDP users out there, this patch also fixes the boot hang after
> "regulator_init_complete: incomplete constraints, leaving VAUX3 on"
> on that device.
For the record, that "incomplete constraints" message is bogus.
On that board, VAUX3 has a complete set of constraints: it may
only emit 2.8V.
What it lacks is something entirely different: driver support
for the LCD which uses the regulator framework, instead of just
bypassing it and talking directly to the PMIC. By the time it
gets there, the LCD has probably been turned on.
Mark and/or Liam ... you might want to fix that diagnostic, to
avoid leading more developers astray!
--
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