diff options
author | Kevin Hilman <khilman@linaro.org> | 2013-10-19 05:52:46 (GMT) |
---|---|---|
committer | Matthew Weigel <Matthew.Weigel@freescale.com> | 2014-12-11 18:41:15 (GMT) |
commit | e003f58cff967618da58ec116d2cf0e06ccbdcdf (patch) | |
tree | f104437fb56ae783c0d5d74f228d2c0a4d785ee1 /arch | |
parent | 514cf5618c7e12aa3ff9895ef519c6ddcd367889 (diff) | |
download | linux-fsl-qoriq-e003f58cff967618da58ec116d2cf0e06ccbdcdf.tar.xz |
devres: restore zeroing behavior of devres_alloc()
commit 64c862a8 (devres: add kernel standard devm_k.alloc functions) changed
the default behavior of alloc_dr() to no longer zero the allocated memory. However,
only the devm.k.alloc() function were modified to pass in __GFP_ZERO which leaves
any users of devres_alloc() or __devres_alloc() with potentially wrong assumptions
about memory being zero'd upon allocation.
To fix, add __GFP_ZERO to devres_alloc() calls to preserve previous
behavior of zero'ing memory upon allocation.
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Cc: Tejun Heo <tj@kernel.org>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 6fffcfa7c0fc438d3667b4eb2074d94f69c12c7b)
Change-Id: Ib08e13e11b475aea6be4e5121cd926d580b3caa4
Reviewed-on: http://git.am.freescale.net:8181/24442
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Richard Schmitt <richard.schmitt@freescale.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions