]> git.baikalelectronics.ru Git - kernel.git/commit
ataflop: use a statically allocated error counters
authorWilly Tarreau <w@1wt.eu>
Sun, 8 May 2022 09:37:08 +0000 (11:37 +0200)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sun, 8 May 2022 17:01:48 +0000 (10:01 -0700)
commit41646ce90536747411ca8b0c9b807e31ee17c4dd
treed8c20ad714e236562cfe2cc5af9243e3a38d3051
parentc329f2317566ff911b32f6bf1eb544f899117dac
ataflop: use a statically allocated error counters

This is the last driver making use of fd_request->error_count, which is
easy to get wrong as was shown in floppy.c.  We don't need to keep it
there, it can be moved to the atari_floppy_struct instead, so let's do
this.

Suggested-by: Linus Torvalds <torvalds@linuxfoundation.org>
Cc: Minh Yuan <yuanmingbuaa@gmail.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/block/ataflop.c