]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
test/librbd/fsx: don't call posix_memalign() if size is 0
authorIlya Dryomov <idryomov@gmail.com>
Sat, 11 May 2024 08:00:47 +0000 (10:00 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 20 May 2024 13:09:47 +0000 (15:09 +0200)
commit3e27f4bd34917d8079dddbf2e990b80f85120551
tree67b861b7bdafa7aa69abf848d4a56506b81a8d6e
parent308054995d9e7304dda819690db23ee5eaed22b6
test/librbd/fsx: don't call posix_memalign() if size is 0

While legal, it's specified as implementation-defined behavior and
newer valgrind throws InvalidSize error on it.

Fixes: https://tracker.ceph.com/issues/65813
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 148448033d03bc9b3e8f614ac0ec2a1aae674d26)
src/test/librbd/fsx.cc