fs/squashfs: sqfs_read: remove buggy offset functionality
authorRichard Genoud <richard.genoud@posteo.net>
Tue, 3 Nov 2020 11:11:24 +0000 (12:11 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 19 Nov 2020 14:45:49 +0000 (09:45 -0500)
commit21b1b3bad58b50e5464b1bf016e7c96bf18ddb8d
tree6634e5e2cb8ccf1d38424f73c18719d987faa061
parentcbd5e40ede4e5c6aedce9475325bdf80b7fa839b
fs/squashfs: sqfs_read: remove buggy offset functionality

offset is the offset in the file read, not the offset in the destination
buffer.
If the offset is not null, this will lead to a memory corruption.
So, for now, we are returning an error if the offset is used.

Signed-off-by: Richard Genoud <richard.genoud@posteo.net>
fs/squashfs/sqfs.c