diff options
| author | Linus Torvalds <[email protected]> | 2023-10-11 20:58:32 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2023-10-11 20:58:32 +0000 |
| commit | 759d1b653f3c7c2249b7fe5f6b218f87a5842822 (patch) | |
| tree | 1a1c4e39834a20b4fae41227bbbc7690cc7aaec2 /fs/btrfs/delayed-inode.c | |
| parent | Merge tag 'ata-6.6-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dlem... (diff) | |
| parent | btrfs: add __counted_by for struct btrfs_delayed_item and use struct_size() (diff) | |
| download | kernel-759d1b653f3c7c2249b7fe5f6b218f87a5842822.tar.gz kernel-759d1b653f3c7c2249b7fe5f6b218f87a5842822.zip | |
Merge tag 'for-6.6-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fixes from David Sterba:
"A revert of recent mount option parsing fix, this breaks mounts with
security options.
The second patch is a flexible array annotation"
* tag 'for-6.6-rc5-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux:
btrfs: add __counted_by for struct btrfs_delayed_item and use struct_size()
Revert "btrfs: reject unknown mount options early"
Diffstat (limited to 'fs/btrfs/delayed-inode.c')
| -rw-r--r-- | fs/btrfs/delayed-inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/delayed-inode.c b/fs/btrfs/delayed-inode.c index caf0bbd028d1..90aaedce1548 100644 --- a/fs/btrfs/delayed-inode.c +++ b/fs/btrfs/delayed-inode.c @@ -313,7 +313,7 @@ static struct btrfs_delayed_item *btrfs_alloc_delayed_item(u16 data_len, { struct btrfs_delayed_item *item; - item = kmalloc(sizeof(*item) + data_len, GFP_NOFS); + item = kmalloc(struct_size(item, data, data_len), GFP_NOFS); if (item) { item->data_len = data_len; item->type = type; |
