mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 21:51:05 +00:00
net/mlx4_core: Fix inaccurate return value of mlx4_flow_attach()
Adopt the "info: why not propagate 'ret' from parse_trans_rule()..." suggestion made by the smatch semantic checker on: drivers/net/ethernet/mellanox/mlx4/mcg.c:867 mlx4_flow_attach() Signed-off-by: Eyal Perry <eyalpe@mellanox.com> Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c3ca5205e6
commit
7572038409
1 changed files with 1 additions and 1 deletions
|
@ -897,7 +897,7 @@ int mlx4_flow_attach(struct mlx4_dev *dev,
|
||||||
ret = parse_trans_rule(dev, cur, mailbox->buf + size);
|
ret = parse_trans_rule(dev, cur, mailbox->buf + size);
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
mlx4_free_cmd_mailbox(dev, mailbox);
|
mlx4_free_cmd_mailbox(dev, mailbox);
|
||||||
return -EINVAL;
|
return ret;
|
||||||
}
|
}
|
||||||
size += ret;
|
size += ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue