diff options
| author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2023-03-15 14:31:26 +0300 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2023-04-05 19:42:45 -0700 |
| commit | 5f29298fba1ad1e7139381e19e09c272db337b13 (patch) | |
| tree | 5b0becdbd5ed4369b79f218ddeeb55f5d0c7b0bf /kernel/static_call_inline.c | |
| parent | 254ca6d261d4b6ce00591de110f6f96c3556dfbe (diff) | |
| download | linux-5f29298fba1ad1e7139381e19e09c272db337b13.tar.gz linux-5f29298fba1ad1e7139381e19e09c272db337b13.tar.bz2 linux-5f29298fba1ad1e7139381e19e09c272db337b13.zip | |
floppy: fix MAX_ORDER usage
MAX_ORDER is not inclusive: the maximum allocation order buddy allocator
can deliver is MAX_ORDER-1.
Fix MAX_ORDER usage in floppy code.
Also allocation buffer exactly PAGE_SIZE << MAX_ORDER bytes is okay. Fix
MAX_LEN check.
Link: https://lkml.kernel.org/r/20230315113133.11326-4-kirill.shutemov@linux.intel.com
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Acked-by: Mike Rapoport (IBM) <rppt@kernel.org>
Cc: Denis Efremov <efremov@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/static_call_inline.c')
0 files changed, 0 insertions, 0 deletions
