[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] sd: limit sd_cmd_type array index 'req.cmd'
From: |
P J P |
Subject: |
Re: [Qemu-devel] [PATCH] sd: limit sd_cmd_type array index 'req.cmd' |
Date: |
Thu, 21 Jan 2016 00:23:53 +0530 (IST) |
+-- On Wed, 20 Jan 2016, Peter Maydell wrote --+
| This isn't the only bit of sd.c that assumes that the controller
| model hasn't passed it an oversize command number --
| sd_do_command() calls cmd_valid_while_locked() which uses req.cmd
| as an index into sd_cmd_class[].
Ah yes; I looked for 'req.cmd', but missed 'req->cmd'. I've sent a revised
patch v2.
Thank you.
--
- P J P
47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F