Re: [PATCH] iavf: Fix null pointer dereference in iavf_print_link_message

From: Jakub Kicinski
Date: Tue Dec 12 2023 - 16:28:57 EST


On Mon, 11 Dec 2023 10:59:27 +0800 Kunwu Chan wrote:
> kasprintf() returns a pointer to dynamically allocated memory
> which can be NULL upon failure.
>
> Fixes: 1978d3ead82c ("intel: fix string truncation warnings")

No need for the allocation here, print to a buffer on the stack.
--
pw-bot: cr