Re: [PATCH v1] af/rvu_cgx: Fix missing check bugs in rvu_cgx.c

From: Jakub Kicinski
Date: Mon Jan 04 2021 - 16:26:54 EST


On Tue, 29 Dec 2020 23:24:26 -0800 wangyingjie55@xxxxxxx wrote:
> From: Yingjie Wang <wangyingjie55@xxxxxxx>
>
> In rvu_mbox_handler_cgx_mac_addr_get() and rvu_mbox_handler_cgx_mac_addr_set(),
> the msg is expected only from PFs that are mapped to CGX LMACs.
> It should be checked before mapping, so we add the is_cgx_config_permitted() in the functions.
>
> Signed-off-by: Yingjie Wang <wangyingjie55@xxxxxxx>

Please include an appropriate Fixes tag and repost, thanks!