android_kernel_xiaomi_sm8350/drivers/misc/sgi-gru
Linus Torvalds d39b7dd1dc sgi-gru: decrapfiy options_write() function
Not a single line of actual code in the function was really
fundamentally correct.

Problems ranged from lack of proper range checking, to removing the last
character written (which admittedly is usually '\n'), to not accepting
hex numbers even though the 'show' routine would show the data in that
format.

This tries to do better.

Acked-by: Michael Buesch <mb@bu3sch.de>
Tested-and-acked-by: Jack Steiner <steiner@sgi.com>
Cc: stable@kernel.org
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Michael Gilbert <michael.s.gilbert@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-11-05 10:48:30 -08:00
..
gru_instructions.h gru: cleanup gru inline functions 2009-06-18 13:04:03 -07:00
gru.h
grufault.c gru: fix potential use-after-free when purging GRU tlbs 2009-06-18 13:04:04 -07:00
grufile.c const: constify remaining file_operations 2009-10-01 16:11:11 -07:00
gruhandles.c gru: change resource assignment for kernel threads 2009-06-18 13:04:00 -07:00
gruhandles.h gru: remove references to the obsolete global status handle 2009-06-18 13:04:04 -07:00
grukdump.c gru: copyright fixes 2009-06-18 13:04:04 -07:00
grukservices.c gru: allocation may fail in quicktest1() 2009-09-24 07:21:05 -07:00
grukservices.h gru: support for asynchronous gru instructions 2009-06-18 13:04:00 -07:00
grulib.h gru: fixes to grudump utility 2009-06-18 13:04:04 -07:00
grumain.c gru: copyright fixes 2009-06-18 13:04:04 -07:00
gruprocfs.c sgi-gru: decrapfiy options_write() function 2009-11-05 10:48:30 -08:00
grutables.h const: mark struct vm_struct_operations 2009-09-27 11:39:25 -07:00
grutlbpurge.c
Makefile gru: dump chiplet state 2009-06-18 13:03:59 -07:00