Re: [PATCH v2] net: 9p: fix possible memory leak in p9_check_errors()

From: asmadeus
Date: Thu Oct 26 2023 - 23:42:51 EST


Hangyu Hua wrote on Fri, Oct 27, 2023 at 11:03:02AM +0800:
> When p9pdu_readf() is called with "s?d" attribute, it allocates a pointer
> that will store a string. But when p9pdu_readf() fails while handling "d"
> then this pointer will not be freed in p9_check_errors().
>
> Fixes: 51a87c552dfd ("9p: rework client code to use new protocol support functions")
> Reviewed-by: Christian Schoenebeck <linux_oss@xxxxxxxxxxxxx>
> Signed-off-by: Hangyu Hua <hbh25y@xxxxxxxxx>

Thanks, pushed for next
--
Dominique Martinet | Asmadeus