]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: wl128x: get rid of a potential spectre issue
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 1 Sep 2020 10:05:57 +0000 (12:05 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 3 Sep 2020 09:09:32 +0000 (11:09 +0200)
commite4969cff95fb85bd242cd74905065a41e3d04ab9
tree0dabf99a72a98b42bda7f0d99869414a9da29535
parent13c129066845dc6b81f5e13ddaf854b053a9490f
media: wl128x: get rid of a potential spectre issue

As reported by smatch:
drivers/media/radio/wl128x/fmdrv_common.c:736 fm_irq_handle_rdsdata_getcmd_resp() warn: potential spectre issue 'rds_fmt.data.groupdatabuff.buff>

Address it by using array_index_nospec().

While here, reorder the linux/ includes.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/radio/wl128x/fmdrv_common.c