Re: [PATCH] [V2] infiniband: fix a missing check of nla_put

From: Jason Gunthorpe
Date: Mon Jan 14 2019 - 16:05:00 EST


On Sat, Jan 05, 2019 at 10:18:07AM -0600, Aditya Pakki wrote:
> nla_put() may fail. The fix adds a check for its return value, and
> returns -EMSGSIZE if it fails, post canceling netlink msg.
>
> Signed-off-by: Aditya Pakki <pakki001@xxxxxxx>
> ---
> drivers/infiniband/core/addr.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)

Leon?

Jason