The patch titled Subject: zswap: comment clarifying maxlen has been removed from the -mm tree. Its filename was zswap-change-zpool-compressor-at-runtime-fix.patch This patch was dropped because it was folded into zswap-change-zpool-compressor-at-runtime.patch ------------------------------------------------------ From: Dan Streetman <ddstreet@xxxxxxxx> Subject: zswap: comment clarifying maxlen Add a comment clarifying the variable-size array created on the stack will always be either CRYPTO_MAX_ALG_NAME (64) or 32 bytes long. Signed-off-by: Dan Streetman <ddstreet@xxxxxxxx> Cc: Seth Jennings <sjennings@xxxxxxxxxxxxxx> Cc: Sergey Senozhatsky <sergey.senozhatsky.work@xxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/zswap.c | 5 +++++ 1 file changed, 5 insertions(+) diff -puN mm/zswap.c~zswap-change-zpool-compressor-at-runtime-fix mm/zswap.c --- a/mm/zswap.c~zswap-change-zpool-compressor-at-runtime-fix +++ a/mm/zswap.c @@ -691,6 +691,11 @@ static int __zswap_param_set(const char char str[kp->str->maxlen], *s; int ret; + /* + * kp is either zswap_zpool_kparam or zswap_compressor_kparam, defined + * at the top of this file, so maxlen is CRYPTO_MAX_ALG_NAME (64) or + * 32 (arbitrary). + */ strlcpy(str, val, kp->str->maxlen); s = strim(str); _ Patches currently in -mm which might be from ddstreet@xxxxxxxx are zpool-add-zpool_has_pool.patch zswap-dynamic-pool-creation.patch zswap-change-zpool-compressor-at-runtime.patch zswap-update-docs-for-runtime-changeable-attributes.patch zswap-update-docs-for-runtime-changeable-attributes-v2.patch zpool-remove-no-op-module-init-exit.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html