Skip to content
Commit d43fdae7 authored by Mauricio Faria de Oliveira's avatar Mauricio Faria de Oliveira Committed by Jens Axboe
Browse files

partitions/aix: append null character to print data from disk



Even if properly initialized, the lvname array (i.e., strings)
is read from disk, and might contain corrupt data (e.g., lack
the null terminating character for strings).

So, make sure the partition name string used in pr_warn() has
the null terminating character.

Fixes: 6ceea22b ("partitions: add aix lvm partition support files")
Suggested-by: default avatarDaniel J. Axtens <daniel.axtens@canonical.com>
Signed-off-by: default avatarMauricio Faria de Oliveira <mfo@canonical.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 14cb2c8a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment