diff options
| author | Josh Law <objecting@objecting.org> | 2026-03-24 22:32:10 +0000 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-05-28 21:24:43 -0700 |
| commit | f424800c2a23d9fdc1355bdaf46ad2bc89741436 (patch) | |
| tree | 04ff67abea6730d30c363093e07c7040665d5885 /lib/base64.c | |
| parent | cae29a5787e38ce7ec7727a87ac7e393a85cb1ef (diff) | |
| download | linux-next-f424800c2a23d9fdc1355bdaf46ad2bc89741436.tar.gz linux-next-f424800c2a23d9fdc1355bdaf46ad2bc89741436.zip | |
lib/base64: fix copy-pasted @padding doc in base64_decode()
The @padding kernel-doc for base64_decode() says "whether to append '='
padding characters", which was copy-pasted from base64_encode(). In the
decode context, it controls whether the input is expected to include
padding, not whether to append it.
Link: https://lore.kernel.org/20260324223210.47676-3-objecting@objecting.org
Signed-off-by: Josh Law <objecting@objecting.org>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'lib/base64.c')
| -rw-r--r-- | lib/base64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/base64.c b/lib/base64.c index 20dacee25f65..325c7332b049 100644 --- a/lib/base64.c +++ b/lib/base64.c @@ -122,7 +122,7 @@ EXPORT_SYMBOL_GPL(base64_encode); * @src: the string to decode. Doesn't need to be NUL-terminated. * @srclen: the length of @src in bytes * @dst: (output) the decoded binary data - * @padding: whether to append '=' padding characters + * @padding: whether the input is expected to include '=' padding characters * @variant: which base64 variant to use * * Decodes a string using the selected Base64 variant. |
