diff options
author | Leon Romanovsky <leon@kernel.org> | 2023-01-15 12:22:36 +0200 |
---|---|---|
committer | Leon Romanovsky <leon@kernel.org> | 2023-01-15 12:22:36 +0200 |
commit | 1ca49d26afc2609542be4a57e336191b525ca698 (patch) | |
tree | 36624298c11de91a7a25f0c92d07faeff0d96292 /net/caif/cfctrl.c | |
parent | ccdbefcf661e537a3126719f4f11484cd85404d7 (diff) | |
parent | 9b2e3723728efe03433be5c13b31da451d88ee3d (diff) |
Merge branch 'mlx5-next' into HEAD
Bring HW bits for mlx5 QP events series.
Link: https://lore.kernel.org/all/cover.1672821186.git.leonro@nvidia.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'net/caif/cfctrl.c')
-rw-r--r-- | net/caif/cfctrl.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/caif/cfctrl.c b/net/caif/cfctrl.c index cc405d8c7c30..8480684f2762 100644 --- a/net/caif/cfctrl.c +++ b/net/caif/cfctrl.c @@ -269,11 +269,15 @@ int cfctrl_linkup_request(struct cflayer *layer, default: pr_warn("Request setup of bad link type = %d\n", param->linktype); + cfpkt_destroy(pkt); return -EINVAL; } req = kzalloc(sizeof(*req), GFP_KERNEL); - if (!req) + if (!req) { + cfpkt_destroy(pkt); return -ENOMEM; + } + req->client_layer = user_layer; req->cmd = CFCTRL_CMD_LINK_SETUP; req->param = *param; |