Kevin Hilman 6fffcfa7c0 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>
2013-10-25 05:46:27 +01:00
..
2013-10-19 13:05:38 -07:00
2013-10-11 07:31:47 +05:30
2013-09-03 11:37:15 -07:00
2013-10-19 13:05:38 -07:00
2013-10-07 17:08:26 +02:00
2013-09-09 16:35:29 -07:00
2013-10-19 13:05:38 -07:00
2013-09-06 13:30:06 -07:00
2013-09-13 15:09:52 +02:00
2013-10-19 13:05:38 -07:00
2013-10-19 13:05:38 -07:00
2013-10-19 13:05:38 -07:00
2013-10-19 13:05:38 -07:00
2013-09-13 15:09:52 +02:00
2013-09-06 13:21:16 -07:00
2013-09-26 16:15:02 -07:00
2013-10-16 13:22:16 -07:00
2013-09-03 11:37:15 -07:00