[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y5IKfOOhinE66+Kt@nanopsycho>
Date: Thu, 8 Dec 2022 17:02:04 +0100
From: Jiri Pirko <jiri@...nulli.us>
To: Jiasheng Jiang <jiasheng@...as.ac.cn>
Cc: leon@...nel.org, jesse.brandeburg@...el.com,
anthony.l.nguyen@...el.com, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH net v4] ice: Add check for kzalloc
Thu, Dec 08, 2022 at 02:35:52PM CET, jiasheng@...as.ac.cn wrote:
>Add the check for the return value of kzalloc in order to avoid
>NULL pointer dereference.
>Moreover, use the goto-label to share the clean code.
>
>Fixes: d6b98c8d242a ("ice: add write functionality for GNSS TTY")
>Signed-off-by: Jiasheng Jiang <jiasheng@...as.ac.cn>
Reviewed-by: Jiri Pirko <jiri@...dia.com>
Powered by blists - more mailing lists