X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=diskutil.c;h=27ddb46b7fecdae75114874210ed2ae135d21bd6;hb=df0f461d6f831922d1e884c391adcb98a413bbd2;hp=0f7a64209b57747139e66705a8fd2f71ebbe4697;hpb=78475ac3b9453eff01c34778d70a2aed4aecffe8;p=fio.git diff --git a/diskutil.c b/diskutil.c index 0f7a6420..27ddb46b 100644 --- a/diskutil.c +++ b/diskutil.c @@ -292,10 +292,8 @@ static struct disk_util *disk_util_add(struct thread_data *td, int majdev, dprint(FD_DISKUTIL, "add maj/min %d/%d: %s\n", majdev, mindev, path); du = smalloc(sizeof(*du)); - if (!du) { - log_err("fio: smalloc() pool exhausted\n"); + if (!du) return NULL; - } memset(du, 0, sizeof(*du)); INIT_FLIST_HEAD(&du->list);