commit | 069b188f43d9a44422eb35a8f95533d2c44ad315 | [log] [tgz] |
---|---|---|
author | Chris Metcalf <cmetcalf@mellanox.com> | Thu Jul 28 15:07:04 2016 -0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Aug 30 14:45:50 2016 +0200 |
tree | fed6b8e65379cf74c34ba6901506c5f71d8a23c5 | |
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>