diff options
| author | John Garry <[email protected]> | 2024-11-27 09:23:18 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-11-27 22:04:57 +0000 |
| commit | 2cbd51f1f8739fd2fdf4bae1386bcf75ce0176ba (patch) | |
| tree | 42fd03ab77cd6c41742fe14a6f083d432c2ca3c8 /drivers/usb/cdns3/cdns3-plat.c | |
| parent | mq-deadline: don't call req_get_ioprio from the I/O completion handler (diff) | |
| download | kernel-2cbd51f1f8739fd2fdf4bae1386bcf75ce0176ba.tar.gz kernel-2cbd51f1f8739fd2fdf4bae1386bcf75ce0176ba.zip | |
block: Don't allow an atomic write be truncated in blkdev_write_iter()
A write which goes past the end of the bdev in blkdev_write_iter() will
be truncated. Truncating cannot tolerated for an atomic write, so error
that condition.
Fixes: caf336f81b3a ("block: Add fops atomic write support")
Signed-off-by: John Garry <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions
