diff options
author | Vishal Sagar <vishal.sagar@xilinx.com> | 2017-04-24 10:23:32 +0530 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2017-05-03 19:10:58 +0200 |
commit | e3a7ef8e470b6815d0e094fdbe32f4d362de4ca2 (patch) | |
tree | c844eb7f47d08649efc76295fb08fdee46889236 | |
parent | c431ad705bdb19d3c02670e1ab26db2abc1a6603 (diff) | |
download | linux-e3a7ef8e470b6815d0e094fdbe32f4d362de4ca2.tar.gz |
xcsi2rxss: Fix crash caused by update to event counter variable
Driver crashes trying to update counter values in xcsi2rxss_reset_event_counters().
The reason is the xcsi2rxss_events[] is declared as a const and
the update to counter member happens via another variable events
assigned the address of xcsi2rxss_events[] in xcsi2rxss_probe().
Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | drivers/media/platform/xilinx/xilinx-csi2rxss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/xilinx/xilinx-csi2rxss.c b/drivers/media/platform/xilinx/xilinx-csi2rxss.c index 6a9e92ec1e851e..531756872ddaa3 100644 --- a/drivers/media/platform/xilinx/xilinx-csi2rxss.c +++ b/drivers/media/platform/xilinx/xilinx-csi2rxss.c @@ -487,7 +487,7 @@ static const struct pixel_format pixel_formats[] = { { MIPI_CSI_DT_RAW_14, "RAW14 "} }; -static const struct xcsi2rxss_event xcsi2rxss_events[] = { +static struct xcsi2rxss_event xcsi2rxss_events[] = { { XCSI_ISR_FR_MASK, "Frame Received", 0 }, { XCSI_ISR_ILC_MASK, "Invalid Lane Count Error", 0 }, { XCSI_ISR_SPFIFOF_MASK, "Short Packet FIFO OverFlow Error", 0 }, |