ext4: silence array overflow warning
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 5 Aug 2017 23:00:31 +0000 (19:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 5 Aug 2017 23:00:31 +0000 (19:00 -0400)
commit381cebfe72e17e495281c07c976797f5a397515a
treeece9bc4bd3cde775c7582ca75192159d58412c54
parentfcf5ea10992fbac3c7473a1db33d56a139333cd1
ext4: silence array overflow warning

I get a static checker warning:

    fs/ext4/ext4.h:3091 ext4_set_de_type()
    error: buffer overflow 'ext4_type_by_mode' 15 <= 15

It seems unlikely that we would hit this read overflow in real life, but
it's also simple enough to make the array 16 bytes instead of 15.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h