summaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines
diff options
context:
space:
mode:
authorMichal Hocko <mhocko@suse.com>2017-11-23 19:13:40 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2017-11-28 19:57:11 +0300
commitd210a9874b8f6166579408131cb74495caff1958 (patch)
tree98f69c1ca0e3428c3f203eef300b9da08c6375e7 /tools/perf/util/scripting-engines
parent509955823cc9cc225c05673b1b83d70ca70c5c60 (diff)
downloadlinux-d210a9874b8f6166579408131cb74495caff1958.tar.xz
xfs: fortify xfs_alloc_buftarg error handling
percpu_counter_init failure path doesn't clean up &btp->bt_lru list. Call list_lru_destroy in that error path. Similarly register_shrinker error path is not handled. While it is unlikely to trigger these error path, it is not impossible especially the later might fail with large NUMAs. Let's handle the failure to make the code more robust. Noticed-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp> Signed-off-by: Michal Hocko <mhocko@suse.com> Acked-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'tools/perf/util/scripting-engines')
0 files changed, 0 insertions, 0 deletions