于 2013年11月11日 18:40, Huang Shijie 写道: > + chip->buffers = kzalloc(sizeof(*chip->buffers), GFP_KERNEL); > + if (!chip->buffers) > + return -ENOMEM; > + chip->options |= NAND_OWN_BUFFERS; It has a memory leak for the NAND_OWN_BUFFERS. i should free this buffer myself too. thanks Huang Shijie