diff options
author | Kees Cook <keescook@chromium.org> | 2018-05-03 02:58:09 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-05-18 17:36:09 +0300 |
commit | bbe21d7a979245902113e171fdb36b57812b3c3b (patch) | |
tree | 065870886eef6ec945d0aa5f7e804c2017102969 /tools/perf/scripts/python/stackcollapse.py | |
parent | 66b7eaca548d716b86ae2417ec103a7f2f6c214c (diff) | |
download | linux-bbe21d7a979245902113e171fdb36b57812b3c3b.tar.xz |
scsi: ufs: ufshcd: Remove VLA usage
On the quest to remove all VLAs from the kernel[1] this moves buffers
off the stack. In the second instance, this collapses two separately
allocated buffers into a single buffer, since they are used
consecutively, which saves 256 bytes (QUERY_DESC_MAX_SIZE + 1) of stack
space.
[1] https://lkml.kernel.org/r/CA+55aFzCG-zNmZwX4A2FQpadafLfEzK6CC=qPXydAacU1RqZWA@mail.gmail.com
Signed-off-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions