Merge tag 'drm-misc-fixes-2017-08-28' of git://anongit.freedesktop.org/git/drm-misc into drm-fixes
Driver Changes: - bridge/sii8620: Fix out-of-bounds write to incorrect register Cc: Maciej Purski <m.purski@samsung.com> Cc: Andrzej Hajda <a.hajda@samsung.com> * tag 'drm-misc-fixes-2017-08-28' of git://anongit.freedesktop.org/git/drm-misc: drm/bridge/sii8620: Fix memory corruption
This commit is contained in:
commit
e38f5164ca
|
@ -597,9 +597,9 @@ static void sii8620_mt_read_devcap(struct sii8620 *ctx, bool xdevcap)
|
|||
static void sii8620_mt_read_devcap_reg_recv(struct sii8620 *ctx,
|
||||
struct sii8620_mt_msg *msg)
|
||||
{
|
||||
u8 reg = msg->reg[0] & 0x7f;
|
||||
u8 reg = msg->reg[1] & 0x7f;
|
||||
|
||||
if (msg->reg[0] & 0x80)
|
||||
if (msg->reg[1] & 0x80)
|
||||
ctx->xdevcap[reg] = msg->ret;
|
||||
else
|
||||
ctx->devcap[reg] = msg->ret;
|
||||
|
|
Loading…
Reference in New Issue