]> git.baikalelectronics.ru Git - kernel.git/commit
isofs compress: Remove VLA usage
authorKyle Spiers <ksspiers@google.com>
Wed, 11 Apr 2018 00:02:29 +0000 (17:02 -0700)
committerJan Kara <jack@suse.cz>
Wed, 11 Apr 2018 07:55:40 +0000 (09:55 +0200)
commite9f74d314e7d92eb4bbb650a560196d382027359
tree541480a00b9870bb5b97328c8abca5897e7aa7c7
parent1c5ce0044a951d688b3d477c03c37195420c1e86
isofs compress: Remove VLA usage

As part of the effort to remove VLAs from the kernel[1], this changes
the allocation of the bhs and pages arrays from being on the stack to being
kcalloc()ed. This also allows for the removal of the explicit zeroing
of bhs.

https://lkml.org/lkml/2018/3/7/621

Signed-off-by: Kyle Spiers <ksspiers@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/isofs/compress.c