Whamcloud - gitweb
libsupport: fix potental NULL pointer dereferences in quota functions
authorLukas Czerner <lczerner@redhat.com>
Fri, 6 Aug 2021 09:58:20 +0000 (11:58 +0200)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 10 Aug 2021 16:20:19 +0000 (12:20 -0400)
commit0a219efe5b0bd1fd8c517877467d1d62d08b8f75
tree0bc15309b21b5935fb4d44d7a6c6dc9cf9df970e
parent6fc7bb509cbf16b26953620d9fd2a32fe2a4b63a
libsupport: fix potental NULL pointer dereferences in quota functions

get_dq() function can fail when the memory allocation fails and so we
could end up dereferencing NULL pointer. Fix it.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
lib/support/mkquota.c
lib/support/quotaio_tree.c