On 26.03.2014 13:06, Stefan Hajnoczi wrote:
From: Kevin Wolf <kw...@redhat.com>

This avoids a possible division by zero.

Convert s->tracks to unsigned as well because it feels better than
surviving just because the results of calculations with s->tracks are
converted to unsigned anyway.

Signed-off-by: Kevin Wolf <kw...@redhat.com>
---
  block/parallels.c          | 7 ++++++-
  tests/qemu-iotests/076     | 7 +++++++
  tests/qemu-iotests/076.out | 4 ++++
  3 files changed, 17 insertions(+), 1 deletion(-)

Reviewed-by: Max Reitz <mre...@redhat.com>

Reply via email to