summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2020-06-28 13:52:44 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-09 09:39:36 +0200
commit92e13371c255402efc96effe5e6afaebd0f0314c (patch)
tree9612631e53c9239d84224c8d8c1494c0feffed42 /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
parent852132c840a7fd6ccf71539d2405d39747433c42 (diff)
i2c: mlxcpld: check correct size of maximum RECV_LEN packet
[ Upstream commit 597911287fcd13c3a4b4aa3e0a52b33d431e0a8e ] I2C_SMBUS_BLOCK_MAX defines already the maximum number as defined in the SMBus 2.0 specs. I don't see a reason to add 1 here. Also, fix the errno to what is suggested for this error. Fixes: c9bfdc7c16cb ("i2c: mlxcpld: Add support for smbus block read transaction") Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Michael Shych <michaelsh@mellanox.com> Tested-by: Michael Shych <michaelsh@mellanox.com> Signed-off-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions