diff options
| author | Geert Uytterhoeven <geert+renesas@glider.be> | 2025-01-03 09:51:25 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-02-08 09:56:51 +0100 |
| commit | 20e84b406feadab5c0e5d700c0cdf738a229778c (patch) | |
| tree | a6065c3b9b59ab0b68636a61ba0eaf68ad92389d /block | |
| parent | f83f330fc432117ec1930b5365ff421b1547deb9 (diff) | |
| download | linux-20e84b406feadab5c0e5d700c0cdf738a229778c.tar.gz linux-20e84b406feadab5c0e5d700c0cdf738a229778c.tar.bz2 linux-20e84b406feadab5c0e5d700c0cdf738a229778c.zip | |
ps3disk: Do not use dev->bounce_size before it is set
[ Upstream commit c2398e6d5f16e15598d3a37e17107fea477e3f91 ]
dev->bounce_size is only initialized after it is used to set the queue
limits. Fix this by using BOUNCE_SIZE instead.
Fixes: a7f18b74dbe17162 ("ps3disk: pass queue_limits to blk_mq_alloc_disk")
Reported-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Closes: https://lore.kernel.org/39256db9-3d73-4e86-a49b-300dfd670212@gmail.com
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/06988f959ea6885b8bd7fb3b9059dd54bc6bbad7.1735894216.git.geert+renesas@glider.be
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions
