diff options
author | Dan Streetman <[email protected]> | 2015-12-18 14:22:04 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2015-12-18 14:25:40 -0800 |
commit | 8bc8b228d076ae93398316f81eab35f3d12c0c4f (patch) | |
tree | 3337c11e0321875600a1018315c254f25b5ee72b /tools/perf/scripts/python | |
parent | 41a0c249cb8706a2efa1ab3d59466b23a27d0c8b (diff) |
mm/zswap: change incorrect strncmp use to strcmp
Change the use of strncmp in zswap_pool_find_get() to strcmp.
The use of strncmp is no longer correct, now that zswap_zpool_type is
not an array; sizeof() will return the size of a pointer, which isn't
the right length to compare. We don't need to use strncmp anyway,
because the existing params and the passed in params are all guaranteed
to be null terminated, so strcmp should be used.
Signed-off-by: Dan Streetman <[email protected]>
Reported-by: Weijie Yang <[email protected]>
Cc: Seth Jennings <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions