[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8760w27ogr.fsf@ashishki-desk.ger.corp.intel.com>
Date: Thu, 31 Mar 2016 16:43:00 +0300
From: Alexander Shishkin <alexander.shishkin@...ux.intel.com>
To: Chunyan Zhang <zhang.chunyan@...aro.org>
Cc: linux-kernel@...r.kernel.org, mathieu.poirier@...aro.org,
zhang.lyra@...il.com
Subject: Re: [PATCH] stm class: correct masterID range in setting via sysfs
Chunyan Zhang <zhang.chunyan@...aro.org> writes:
> The type of masterID is defined as 'unsigned int', theoretically one
> can set masterID with a number larger than 'INT_MAX' as long as
> 'stm_data::sw_end' is larger than 'INT_MAX'.
>
> Also, 'stm_data::start' and 'stm_data::end' is initialized in respective
> drivers which should be able to use any value less than 'UINT_MAX' for
> their masterIDs, of course including those values larger than 'INT_MAX',
> but the current policy is wrongly assuming that masterIDs would not be
> larger than 'INT_MAX'. This patch just corrected that.
>
> Signed-off-by: Chunyan Zhang <zhang.chunyan@...aro.org>
Good catch, thanks!
Powered by blists - more mailing lists