Commit b8201b5
io_uring/rsrc: clean up buffer cloning arg validation
Get rid of some redundant checks and move the src arg validation to
before the buffer table allocation, which simplifies error handling.
Signed-off-by: Joanne Koong <joannelkoong@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent f345be7 commit b8201b5
1 file changed
Lines changed: 6 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
| 1189 | + | |
| 1190 | + | |
1189 | 1191 | | |
1190 | 1192 | | |
1191 | 1193 | | |
1192 | 1194 | | |
1193 | 1195 | | |
1194 | 1196 | | |
| 1197 | + | |
| 1198 | + | |
1195 | 1199 | | |
1196 | 1200 | | |
1197 | 1201 | | |
| |||
1211 | 1215 | | |
1212 | 1216 | | |
1213 | 1217 | | |
1214 | | - | |
1215 | | - | |
1216 | | - | |
1217 | | - | |
1218 | | - | |
1219 | | - | |
1220 | | - | |
1221 | | - | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
1227 | | - | |
1228 | | - | |
1229 | 1218 | | |
1230 | 1219 | | |
1231 | 1220 | | |
| |||
1238 | 1227 | | |
1239 | 1228 | | |
1240 | 1229 | | |
1241 | | - | |
1242 | | - | |
| 1230 | + | |
| 1231 | + | |
1243 | 1232 | | |
1244 | 1233 | | |
1245 | 1234 | | |
| |||
1265 | 1254 | | |
1266 | 1255 | | |
1267 | 1256 | | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
1271 | | - | |
1272 | 1257 | | |
1273 | 1258 | | |
1274 | 1259 | | |
| |||
0 commit comments