diff options
Diffstat (limited to 'fs/udf/directory.c')
-rw-r--r-- | fs/udf/directory.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/udf/directory.c b/fs/udf/directory.c index d8ceb44f4f22..be16d7698a8c 100644 --- a/fs/udf/directory.c +++ b/fs/udf/directory.c | |||
@@ -282,7 +282,7 @@ static extent_ad *udf_get_fileextent(void *buffer, int bufsize, int *offset) | |||
282 | } | 282 | } |
283 | #endif | 283 | #endif |
284 | 284 | ||
285 | short_ad *udf_get_fileshortad(uint8_t *ptr, int maxoffset, int *offset, | 285 | short_ad *udf_get_fileshortad(uint8_t *ptr, int maxoffset, uint32_t *offset, |
286 | int inc) | 286 | int inc) |
287 | { | 287 | { |
288 | short_ad *sa; | 288 | short_ad *sa; |
@@ -292,7 +292,7 @@ short_ad *udf_get_fileshortad(uint8_t *ptr, int maxoffset, int *offset, | |||
292 | return NULL; | 292 | return NULL; |
293 | } | 293 | } |
294 | 294 | ||
295 | if ((*offset < 0) || ((*offset + sizeof(short_ad)) > maxoffset)) | 295 | if ((*offset + sizeof(short_ad)) > maxoffset) |
296 | return NULL; | 296 | return NULL; |
297 | else { | 297 | else { |
298 | sa = (short_ad *)ptr; | 298 | sa = (short_ad *)ptr; |
@@ -305,7 +305,7 @@ short_ad *udf_get_fileshortad(uint8_t *ptr, int maxoffset, int *offset, | |||
305 | return sa; | 305 | return sa; |
306 | } | 306 | } |
307 | 307 | ||
308 | long_ad *udf_get_filelongad(uint8_t *ptr, int maxoffset, int *offset, int inc) | 308 | long_ad *udf_get_filelongad(uint8_t *ptr, int maxoffset, uint32_t *offset, int inc) |
309 | { | 309 | { |
310 | long_ad *la; | 310 | long_ad *la; |
311 | 311 | ||
@@ -314,7 +314,7 @@ long_ad *udf_get_filelongad(uint8_t *ptr, int maxoffset, int *offset, int inc) | |||
314 | return NULL; | 314 | return NULL; |
315 | } | 315 | } |
316 | 316 | ||
317 | if ((*offset < 0) || ((*offset + sizeof(long_ad)) > maxoffset)) | 317 | if ((*offset + sizeof(long_ad)) > maxoffset) |
318 | return NULL; | 318 | return NULL; |
319 | else { | 319 | else { |
320 | la = (long_ad *)ptr; | 320 | la = (long_ad *)ptr; |