commit | 11b49d9bb63fab2f92223419a2492661e317e2ef | [log] [tgz] |
---|---|---|
author | Laura Garcia Liebana <nevola@gmail.com> | Thu Feb 18 18:38:42 2016 +0100 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Feb 20 14:59:37 2016 -0800 |
tree | 316c1608f524033173dfb3aa03ef4df5ce4df999 | |
parent | bf8b2bb6d84031b7207154046f120052435fb196 [diff] |
staging: netlogic: Return zero pointer after failed kmalloc Return a ZERO_SIZE_PTR in the xlr_config_spill function if the kmalloc returns an invalid value. This change prevents a possible segmentation fault as the invalid pointer is fed into PTR_ALIGN macro. Signed-off-by: Laura Garcia Liebana <nevola@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>