summaryrefslogtreecommitdiffstats
path: root/lib/reed_solomon/reed_solomon.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2018-04-22 18:23:54 +0200
committerKees Cook <keescook@chromium.org>2018-04-24 19:50:09 -0700
commit964dfce9c2b323a9a9d0bd6764e0f530b40104e4 (patch)
treef8d6795fe6f37ac9f2ba4083c14cad22d5a9b354 /lib/reed_solomon/reed_solomon.c
parent2163398192f6a53e84765cfe3e5a2088437c3d2d (diff)
downloadlinux-0-day-964dfce9c2b323a9a9d0bd6764e0f530b40104e4.tar.gz
linux-0-day-964dfce9c2b323a9a9d0bd6764e0f530b40104e4.tar.xz
mtd: rawnand: diskonchip: Allocate rs control per instance
The reed solomon library is moving the on stack decoder buffers into the rs control structure. That would break the DoC driver because multiple instances share the same control structure and can operate in parallel. At least in theory.... Instantiate a rs control instance per DoC device to avoid that. The per instance buffer is fine as the operation on a single DoC instance is serialized by the MTD/NAND core. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Boris Brezillon <boris.brezillon@bootlin.com> Cc: Tony Luck <tony.luck@intel.com> Cc: Kees Cook <keescook@chromium.org> Cc: Segher Boessenkool <segher@kernel.crashing.org> Cc: Kernel Hardening <kernel-hardening@lists.openwall.com> Cc: Richard Weinberger <richard@nod.at> Cc: Mike Snitzer <snitzer@redhat.com> Cc: Anton Vorontsov <anton@enomsg.org> Cc: Colin Cross <ccross@android.com> Cc: Andrew Morton <akpm@linuxfoundation.org> Cc: David Woodhouse <dwmw2@infradead.org> Cc: Alasdair Kergon <agk@redhat.com> Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'lib/reed_solomon/reed_solomon.c')
0 files changed, 0 insertions, 0 deletions