diff options
author | Jan Beulich <JBeulich@novell.com> | 2011-05-17 06:07:05 -0400 |
---|---|---|
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2011-05-18 11:28:16 -0400 |
commit | 8ab521506c4dbb144f0c04c55e3d8bec42c1b2b9 (patch) | |
tree | 4521381df4e0dad05ec7b0d3746ea520fd824e2f /drivers/acpi/sbshc.h | |
parent | 496b318eb65558c1a3a4fe882cb9da6d1dc6493a (diff) |
xen/blkback: don't fail empty barrier requests
The sector number on empty barrier requests may (will?) be -1, which,
given that it's being treated as unsigned 64-bit quantity, will almost
always exceed the actual (virtual) disk's size.
Inspired by Konrad's "When writting barriers set the sector number to
zero...".
While at it also add overflow checking to the math in vbd_translate().
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/acpi/sbshc.h')
0 files changed, 0 insertions, 0 deletions