diff options
Diffstat (limited to 'ot_iovec.c')
-rw-r--r-- | ot_iovec.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -48,9 +48,8 @@ void iovec_fixlast( int *iovec_entries, struct iovec **iovector, void *last_ptr | |||
48 | old_pages = 1 + old_alloc / page_size; | 48 | old_pages = 1 + old_alloc / page_size; |
49 | new_pages = 1 + new_alloc / page_size; | 49 | new_pages = 1 + new_alloc / page_size; |
50 | 50 | ||
51 | if( old_pages != new_pages ) { | 51 | if( old_pages != new_pages ) |
52 | munmap( base + new_pages * page_size, old_alloc - new_pages * page_size ); | 52 | munmap( base + new_pages * page_size, old_alloc - new_pages * page_size ); |
53 | } | ||
54 | ((*iovector)[*iovec_entries - 1 ]).iov_len = new_alloc; | 53 | ((*iovector)[*iovec_entries - 1 ]).iov_len = new_alloc; |
55 | } | 54 | } |
56 | 55 | ||