diff options
| author | Sasha Levin <sashal@kernel.org> | 2026-08-30 11:08:21 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-09-02 14:26:43 +0200 |
| commit | 69d2adc8d9c9513b4f62fc7b41ea53bb10a0f8a2 (patch) | |
| tree | 63c3249c6e7920a8c427d7ec491f1649e0fdf0e7 | |
| parent | 023cdfd9d3a8dfc3e8fe0f8fc87137b3897fc166 (diff) | |
| download | linux-stable-69d2adc8d9c9513b4f62fc7b41ea53bb10a0f8a2.tar.gz linux-stable-69d2adc8d9c9513b4f62fc7b41ea53bb10a0f8a2.zip | |
Revert "smb: client: use kvzalloc() for megabyte buffer in simple fallocate"
This reverts commit a0c4a3e5387421ae252126a7bc29f3cd95b3cf06.
Signed-off-by: Sasha Levin <sashal@kernel.org>
| -rw-r--r-- | fs/cifs/smb2ops.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c index a520e90adf3e..51f8ea0c8906 100644 --- a/fs/cifs/smb2ops.c +++ b/fs/cifs/smb2ops.c @@ -3568,7 +3568,7 @@ static int smb3_simple_fallocate_range(unsigned int xid, if (rc) goto out; - buf = kvzalloc(1024 * 1024, GFP_KERNEL); + buf = kzalloc(1024 * 1024, GFP_KERNEL); if (buf == NULL) { rc = -ENOMEM; goto out; @@ -3635,7 +3635,7 @@ static int smb3_simple_fallocate_range(unsigned int xid, out: kfree(out_data); - kvfree(buf); + kfree(buf); return rc; } |
