]> Git Repo - qemu.git/commit
block/io: bdrv_pdiscard: support int64_t bytes parameter
authorVladimir Sementsov-Ogievskiy <[email protected]>
Tue, 23 Apr 2019 12:57:05 +0000 (15:57 +0300)
committerKevin Wolf <[email protected]>
Tue, 4 Jun 2019 14:55:58 +0000 (16:55 +0200)
commitd93e57268892d555d7c71ec30b25276b0d8132b6
treeb8fc2dd5e290b52204aaabbcd3cf3f966834eaef
parent1477b6c803491cd1146a8858bf5cf8159913054d
block/io: bdrv_pdiscard: support int64_t bytes parameter

This fixes at least one overflow in qcow2_process_discards, which
passes 64bit region length to bdrv_pdiscard where bytes (or sectors in
the past) parameter is int since its introduction in 0b919fae.

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block/io.c
include/block/block.h
This page took 0.027622 seconds and 4 git commands to generate.