Message ID | CAGa+x86aS+C8iEb1P4ZYxPBix=Anjh4JZoAof=R-i9fGw=bq6w@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Fri, Oct 18, 2013 at 10:04:11AM -0700, Kevin Hilman wrote: > > A handful of boot panics on ARM platforms were bisected to point at > > the version of this commit that's in linux-next (commit > > 64c862a839a8db2c02bbaa88b923d13e1208919d). Reverting this commit > > makes things happy again. > > > > Upon further digging, it seems that users of devres_alloc() are > > relying on the previous behavior of having the memory zero'd which is > > no longer the case after $SUBJECT patch. The change below on top of > > -next makes these ARM boards happy again. > > Oops, it should've fixed __devres_alloc() also. Updated patch below. Can you send this in a format that I can apply it in? It was whitespace damaged. thanks, greg k-h
diff --git a/drivers/base/devres.c b/drivers/base/devres.c index 37e67a2..545c4de 100644 --- a/drivers/base/devres.c +++ b/drivers/base/devres.c @@ -111,7 +111,7 @@ void * __devres_alloc(dr_release_t release, size_t size, gfp_t gfp, { struct devres *dr; - dr = alloc_dr(release, size, gfp); + dr = alloc_dr(release, size, gfp | __GFP_ZERO); if (unlikely(!dr)) return NULL;