Whamcloud - gitweb
LU-17104 build: Correct test for bad allocation 30/52330/3
authorShaun Tancheff <shaun.tancheff@hpe.com>
Mon, 11 Sep 2023 03:23:11 +0000 (22:23 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 23 Sep 2023 06:03:51 +0000 (06:03 +0000)
commit9db00d1dbdf33f63ff5eb8f122aafc924f5425ff
tree263d79f03a84b60650f8d358d04d4c18167b527c
parent79a2c29df365a8802bce80a54909f7f75d46c164
LU-17104 build: Correct test for bad allocation

Expect non-zero value following allocation. If zeroed
reply to caller with -ENOMEM

This patch fixes a build issue reported by gcc 12

Fixes: 09f9fb3211 ("LU-11023 quota: quota pools for OSTs")
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I2ce197c31bf444d9f179942e516cfd9bdaf7dd9c
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52330
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/quota/qmt_entry.c