Messages in this thread | | | Date | Thu, 16 Oct 2014 10:49:37 +0200 | From | Mark Brown <> | Subject | Re: [PATCH] regulator: s2mps11: Don't zero allocated memory for external control |
| |
On Thu, Oct 16, 2014 at 10:23:28AM +0200, Krzysztof Kozlowski wrote: > The driver was allocating memory for storing GPIOs for external control > with unnecessary GFP_ZERO flag. Then right after allocation it > initialized memory to -EINVAL in loop. Skip the GFP_ZERO flag.
Applied, though it's a bit of a microptimisation and it would be better to use kmalloc_array() instead. [unhandled content-type:application/pgp-signature] | |