Received: from eggs.gnu.org ([2001:4830:134:3::10]:39095) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzI2X-0006YB-5S for qemu-devel@nongnu.org; Wed, 26 Oct 2016 02:50:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzI2W-0003eZ-8w for qemu-devel@nongnu.org; Wed, 26 Oct 2016 02:50:21 -0400 Date: Wed, 26 Oct 2016 12:20:08 +0530 (IST) From: P J P In-Reply-To: Message-ID: References: <1477315364-15134-1-git-send-email-ppandit@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Subject: Re: [Qemu-devel] [PATCH v2] char: cadence: check baud rate generator and divider values List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alistair Francis Cc: Peter Maydell , qemu-arm , Huawei PSIRT , Qemu Developers , "Edgar E . Iglesias" +-- On Tue, 25 Oct 2016, Alistair Francis wrote --+ | I think your email crossed with Peter. Have a look at what he said. | That should clarify everything. I saw, I'll mask values with 0xFFFF and 0xFF; But it's not clear if ignoring values 0 - 3, means leaving registers uninitialised and adding checks at each usage point to ensure their value is valid. If so, do we return from uart_parameters_setup(), when either value is invalid ? Earlier you'd suggested using default values -> https://lists.gnu.org/archive/html/qemu-devel/2016-10/msg04397.html Thank you. -- Prasad J Pandit / Red Hat Product Security Team 47AF CE69 3A90 54AA 9045 1053 DD13 3D32 FE5B 041F