summaryrefslogtreecommitdiff
path: root/drivers/spi/spi-pl022.c
diff options
context:
space:
mode:
authorMaurizio Lombardi <mlombard@redhat.com>2021-10-15 11:26:34 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-18 16:03:43 +0300
commitdb1d9d102ee45b0462237d3257d1520806ab0b4e (patch)
tree42063704099365b43cc34d6ce322a1018b061673 /drivers/spi/spi-pl022.c
parent0e86b727a94fc4d532a166c449ab96e3b15015ea (diff)
downloadlinux-db1d9d102ee45b0462237d3257d1520806ab0b4e.tar.xz
nvmet-tcp: fix a memory leak when releasing a queue
[ Upstream commit 926245c7d22271307606c88b1fbb2539a8550e94 ] page_frag_free() won't completely release the memory allocated for the commands, the cache page must be explicitly freed by calling __page_frag_cache_drain(). This bug can be easily reproduced by repeatedly executing the following command on the initiator: $echo 1 > /sys/devices/virtual/nvme-fabrics/ctl/nvme0/reset_controller Signed-off-by: Maurizio Lombardi <mlombard@redhat.com> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: John Meneghini <jmeneghi@redhat.com> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/spi/spi-pl022.c')
0 files changed, 0 insertions, 0 deletions