1.
As I said in the original thread:
There is already a check at the beginning of the function:
if (index > PT_FPSCR)
return -EIO;
2. fpscr will actually be written to by this line of code:
+ ((unsigned int \*)child->thread.fp_state.fpr)
+ [FPRINDEX(index)] = data;
3. This is a nitpick.
So please tell me how my patch was buggy.