[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241105140359.2465656-1-quzicheng@huawei.com>
Date: Tue, 5 Nov 2024 14:03:57 +0000
From: Zicheng Qu <quzicheng@...wei.com>
To: <lars@...afoo.de>, <Michael.Hennerich@...log.com>, <jic23@...nel.org>,
<gregkh@...uxfoundation.org>, <cristina.opriceana@...il.com>,
<daniel.baluta@...el.com>, <linux-iio@...r.kernel.org>,
<linux-staging@...ts.linux.dev>, <linux-kernel@...r.kernel.org>
CC: <tanghui20@...wei.com>, <zhangqiao22@...wei.com>,
<judy.chenhui@...wei.com>, <quzicheng@...wei.com>
Subject: [PATCH 0/2] Correct Phase Range Check for AD9832 and AD9834 Drivers
Hi all,
I am submitting two patches to address an issue in the AD9832 and AD9834
IIO drivers. The current implementation allows an invalid phase value of
4096 to pass due to incorrect range checking. The phase registers for
both devices are 12 bits, meaning valid values should range from 0 to
4095.
These patches modify the condition to use a greater-than-or-equal-to
check, ensuring only valid phase values are accepted.
Zicheng Qu (2):
staging: iio: ad9834: Correct phase range check
staging: iio: ad9832: Correct phase range check
drivers/staging/iio/frequency/ad9832.c | 2 +-
drivers/staging/iio/frequency/ad9834.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
2.34.1
Powered by blists - more mailing lists