From: Russ Dill Date: Thu, 14 Feb 2013 12:46:33 +0000 (-0800) Subject: regulator: Fix memory garbage dev_err printout. X-Git-Tag: v3.9-rc1~154^2~17^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c7b4e8a8ad2624106fbf690fa97ab9c8c9bfa88;p=pandora-kernel.git regulator: Fix memory garbage dev_err printout. commit dd8004af: 'regulator: core: Log when a device causes a voltage constraint fail', tried to print out some information about the check consumer min/max uV fixup, however, it uses a garbage pointer left over from list_for_each_entry leading to boot messages in the form: '[ 2.079890] : Restricting voltage, 3735899821-4294967295uV' Because it references regulator->dev, it could potentially read memory from anywhere causing a panic. This patch instead uses rdev and the updated min/max uV values. Signed-off-by: Russ Dill Signed-off-by: Mark Brown --- Reading git-diff-tree failed