return NULL only when the total number is larger than configured value Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>