|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 10/35] scsi-disk: support DVD profile in GET CONFIGURATION |
Date: | Mon, 17 Oct 2011 17:28:09 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110927 Thunderbird/7.0 |
On 10/17/2011 05:20 PM, Kevin Wolf wrote:
> + current = media_is_dvd(s) ? MMC_PROFILE_DVD_ROM : MMC_PROFILE_CD_ROM; > + memset(outbuf, 0, 40);Is the memset required at all? I seem to remember that the output buffer was zeroed in generic code.
No, it isn't.
> + stl_be_p(&outbuf[0], 36); /* Bytes after the data length field */ > + /* outbuf[4] - outbuf[19]: Feature 0 - Profile list */Isn't it outbuf[8] - outbuf[19]?
Right. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |