diff options
author | Roland Dreier <roland@purestorage.com> | 2018-01-15 12:24:49 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-16 14:57:34 -0500 |
commit | 70eeff66c4696cee4076d6388b6bede5bd7ff71c (patch) | |
tree | 3e68c546ff184fea0b1b87a4af743720f3c9b34b /include | |
parent | 0d9c9f0f40ca262b67fc06a702b85f3976f5e1a1 (diff) | |
download | linux-stable-70eeff66c4696cee4076d6388b6bede5bd7ff71c.tar.gz linux-stable-70eeff66c4696cee4076d6388b6bede5bd7ff71c.tar.bz2 linux-stable-70eeff66c4696cee4076d6388b6bede5bd7ff71c.zip |
qed: Fix potential use-after-free in qed_spq_post()
We need to check if p_ent->comp_mode is QED_SPQ_MODE_EBLOCK before
calling qed_spq_add_entry(). The test is fine is the mode is EBLOCK,
but if it isn't then qed_spq_add_entry() might kfree(p_ent).
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions