On 9/6/23 7:27 PM, Dan Carpenter wrote: > Hello Cheng Xu, > > The patch 155055771704: "RDMA/erdma: Add verbs implementation" from > Jul 27, 2022 (linux-next), leads to the following Smatch static > checker warning: > > drivers/infiniband/hw/erdma/erdma_verbs.c:1044 erdma_get_dma_mr() > error: potential zalloc NULL dereference: 'mr->mem.mtt' > <...> Hi, Dan, I can reproduce it, it was introduced by commit: 7244b4aa4221 ("RDMA/erdma: Refactor the storage structure of MTT entries") Also I submited a patch to fix it just now. Thanks very much. Cheng Xu