]> 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)
commit0d53dc82b54d74d25cac0649c658197e5641131f
tree541480a00b9870bb5b97328c8abca5897e7aa7c7
parent6fcf7994ed21f352f879822660ffde9c725c4bb1
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