diff options
author | Chris Metcalf <cmetcalf@mellanox.com> | 2016-07-28 15:07:04 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-08-30 14:45:50 +0200 |
commit | 069b188f43d9a44422eb35a8f95533d2c44ad315 (patch) | |
tree | fed6b8e65379cf74c34ba6901506c5f71d8a23c5 /drivers/hv/vmbus_drv.c | |
parent | acde785e492d6ce838f50937f7547124e0837a55 (diff) |
tile-srom: avoid krealloc(... __GFP_ZERO) pattern
Joe Perches points out [1] that this pattern isn't currently safe.
This driver doesn't really need the zeroing semantic anyway;
by restructuring the code slightly we can initialize all the
fields of the structure up front instead.
[1] https://lkml.kernel.org/r/1469729491.3998.58.camel@perches.com
Signed-off-by: Chris Metcalf <cmetcalf@mellanox.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hv/vmbus_drv.c')
0 files changed, 0 insertions, 0 deletions