aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorPhillip Lougher <[email protected]>2022-10-20 23:36:15 +0100
committerAndrew Morton <[email protected]>2022-10-28 13:37:21 -0700
commitc9199de82bad03bceb94ec3c5195c879d7e11911 (patch)
tree5da390ab71954d51685deb503d9d75fc2ab8d11e /lib/mpi/mpi-sub-ui.c
parent9ef8eb6104527bfe9ed31f7a4ffa721390adf9a8 (diff)
squashfs: fix extending readahead beyond end of file
The readahead code will try to extend readahead to the entire size of the Squashfs data block. But, it didn't take into account that the last block at the end of the file may not be a whole block. In this case, the code would extend readahead to beyond the end of the file, leaving trailing pages. Fix this by only requesting the expected number of pages. Link: https://lkml.kernel.org/r/[email protected] Fixes: 8fc78b6fe24c ("squashfs: implement readahead") Signed-off-by: Phillip Lougher <[email protected]> Tested-by: Bagas Sanjaya <[email protected]> Reported-by: Marc Miltenberger <[email protected]> Cc: Dimitri John Ledkov <[email protected]> Cc: Hsin-Yi Wang <[email protected]> Cc: Mirsad Goran Todorovac <[email protected]> Cc: Slade Watkins <[email protected]> Cc: Thorsten Leemhuis <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions