summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorKevin Hilman <khilman@linaro.org>2013-10-19 05:52:46 (GMT)
committerMatthew Weigel <Matthew.Weigel@freescale.com>2014-12-11 18:41:15 (GMT)
commite003f58cff967618da58ec116d2cf0e06ccbdcdf (patch)
treef104437fb56ae783c0d5d74f228d2c0a4d785ee1 /arch
parent514cf5618c7e12aa3ff9895ef519c6ddcd367889 (diff)
downloadlinux-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