[PATCH v3 3/3] dh key: get rid of stack allocated array for zeroes

2018-04-24 Thread Tycho Andersen
We're interested in getting rid of all of the stack allocated arrays in the kernel: https://lkml.org/lkml/2018/3/7/621 This case is interesting, since we really just need an array of bytes that are zero. The loop already ensures that if the array isn't exactly the right size that enough zero

[PATCH v3 3/3] dh key: get rid of stack allocated array for zeroes

2018-04-24 Thread Tycho Andersen
We're interested in getting rid of all of the stack allocated arrays in the kernel: https://lkml.org/lkml/2018/3/7/621 This case is interesting, since we really just need an array of bytes that are zero. The loop already ensures that if the array isn't exactly the right size that enough zero