diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-11-09 14:50:51 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-12-23 22:08:19 +0100 |
commit | d3de970bcba0fb171e6aceaa0723d2cd842dc25c (patch) | |
tree | 89999bfaf0f8cc740d09d98ec1ef888553b08f67 /fs/ubifs/shrinker.c | |
parent | 58225631cf9ae45f98ea04b38b7986e3e7646ee2 (diff) | |
download | linux-stable-d3de970bcba0fb171e6aceaa0723d2cd842dc25c.tar.gz linux-stable-d3de970bcba0fb171e6aceaa0723d2cd842dc25c.tar.bz2 linux-stable-d3de970bcba0fb171e6aceaa0723d2cd842dc25c.zip |
ubifs: fix snprintf() length check
The snprintf() function returns the number of bytes (not including the
NUL terminator) which would have been printed if there were enough
space. So it can be greater than UBIFS_DFS_DIR_LEN. And actually if
it equals UBIFS_DFS_DIR_LEN then that's okay so this check is too
strict.
Fixes: 9a620291fc01 ("ubifs: Export filesystem error counters")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/ubifs/shrinker.c')
0 files changed, 0 insertions, 0 deletions