Register 255 (0xff) is still valid to be accessed.
Reported-by: Rolu <rolu@roce.org>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
#endif
/* check offset range */
- if (address >= 0xFF)
+ if (address > 0xFF)
{
PT_LOG_DEV(d, "Error: Failed to write register with offset exceeding FFh. "
"[Offset:%02xh][Length:%d]\n", address, len);
int ret = 0;
/* check offset range */
- if (address >= 0xFF)
+ if (address > 0xFF)
{
PT_LOG_DEV(d, "Error: Failed to read register with offset exceeding FFh. "
"[Offset:%02xh][Length:%d]\n", address, len);