diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-02-13 11:59:31 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-14 09:13:29 +0300 |
commit | e7c2e3b570442d2a50d43ba0da951329ed0c3c19 (patch) | |
tree | cd1a56cd7317ffff6d34300aba2fab45c91c6ad9 /mm/swap.c | |
parent | 951d3d6fcd72f10b50e2a1182fb533dc2c9da0e5 (diff) | |
download | linux-e7c2e3b570442d2a50d43ba0da951329ed0c3c19.tar.xz |
test_objagg: Uninitialized variable in error handling
We need to set the error message on this path otherwise some of the
callers, such as test_hints_case(), print from an uninitialized pointer.
We had a similar bug earlier and set "errmsg" to NULL in the caller,
test_delta_action_item(). That code is no longer required so I have
removed it.
Fixes: 9069a3817d82 ("lib: objagg: implement optimization hints assembly and use hints for object creation")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'mm/swap.c')
0 files changed, 0 insertions, 0 deletions