Commit 8935989
Al Viro
do_pollfd(): convert to CLASS(fd)
lift setting ->revents into the caller, so that failure exits (including
the early one) would be plain returns.
We need the scope of our struct fd to end before the store to ->revents,
since that's shared with the failure exits prior to the point where we
can do fdget().
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>1 parent d000e07 commit 8935989
1 file changed
Lines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
855 | 855 | | |
856 | 856 | | |
857 | 857 | | |
858 | | - | |
859 | | - | |
| 858 | + | |
860 | 859 | | |
861 | 860 | | |
862 | | - | |
863 | | - | |
864 | | - | |
865 | | - | |
866 | | - | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
867 | 866 | | |
868 | 867 | | |
869 | 868 | | |
870 | 869 | | |
871 | 870 | | |
872 | 871 | | |
873 | 872 | | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | | - | |
878 | | - | |
879 | | - | |
880 | | - | |
| 873 | + | |
881 | 874 | | |
882 | 875 | | |
883 | 876 | | |
| |||
909 | 902 | | |
910 | 903 | | |
911 | 904 | | |
| 905 | + | |
912 | 906 | | |
913 | 907 | | |
914 | 908 | | |
915 | 909 | | |
916 | 910 | | |
917 | 911 | | |
918 | 912 | | |
919 | | - | |
920 | | - | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
921 | 916 | | |
922 | 917 | | |
923 | 918 | | |
| |||
0 commit comments