summaryrefslogtreecommitdiff
path: root/crypto/poly1305_generic.c
diff options
context:
space:
mode:
authorMoshe Shemesh <moshe@mellanox.com>2019-12-27 08:01:53 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-03 09:20:53 +0300
commit212bcf1039a95e4d6a0aead7ffff975526fe613a (patch)
tree0e22cd6d5eb23699a7300ce9c7ee12674951a9d3 /crypto/poly1305_generic.c
parenta9595d1c60a78a7127b3ba84ec0dbf892cab5fac (diff)
downloadlinux-212bcf1039a95e4d6a0aead7ffff975526fe613a.tar.xz
net/mlx5: Add command entry handling completion
[ Upstream commit 17d00e839d3b592da9659c1977d45f85b77f986a ] When FW response to commands is very slow and all command entries in use are waiting for completion we can have a race where commands can get timeout before they get out of the queue and handled. Timeout completion on uninitialized command will cause releasing command's buffers before accessing it for initialization and then we will get NULL pointer exception while trying access it. It may also cause releasing buffers of another command since we may have timeout completion before even allocating entry index for this command. Add entry handling completion to avoid this race. Fixes: e126ba97dba9 ("mlx5: Add driver for Mellanox Connect-IB adapters") Signed-off-by: Moshe Shemesh <moshe@mellanox.com> Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'crypto/poly1305_generic.c')
0 files changed, 0 insertions, 0 deletions