diff options
author | Kevin Hilman <khilman@linaro.org> | 2013-10-18 22:52:46 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-10-25 05:46:27 +0100 |
commit | 6fffcfa7c0fc438d3667b4eb2074d94f69c12c7b (patch) | |
tree | c50528bd6b06e8fbf47e0b95d1418e240cf30ca0 /arch/sh/drivers | |
parent | b9c0622516b73170fa9abffece3079920b78ed6f (diff) | |
download | linux-6fffcfa7c0fc438d3667b4eb2074d94f69c12c7b.tar.bz2 |
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>
Diffstat (limited to 'arch/sh/drivers')
0 files changed, 0 insertions, 0 deletions