1. 22 Apr, 2019 12 commits
  2. 30 Mar, 2019 4 commits
  3. 29 Mar, 2019 20 commits
  4. 28 Mar, 2019 1 commit
  5. 25 Mar, 2019 3 commits
    • Mauro Carvalho Chehab's avatar
      media: hfi_parser: don't trick gcc with a wrong expected size · ded71626
      Mauro Carvalho Chehab authored
      Smatch warns about small size on two structs:
      
      	drivers/media/platform/qcom/venus/hfi_parser.c:103 parse_profile_level() error: memcpy() 'proflevel' too small (8 vs 128)
      	drivers/media/platform/qcom/venus/hfi_parser.c: drivers/media/platform/qcom/venus/hfi_parser.c:129 parse_caps() error: memcpy() 'cap' too small (16 vs 512)
      
      The reason is that the hfi_parser actually expects:
          - multiple data entries on hfi_capabilities
          - multiple profile_level on hfi_profile_level_supported
      
      However, the structs trick gcc, making it to believe that
      there's just one value for each.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      ded71626
    • Mauro Carvalho Chehab's avatar
      media: rcar-dma: p_set can't be NULL · bf78f23a
      Mauro Carvalho Chehab authored
      The only way for p_set to be NULL would be if vin_coef_set would be an
      empty array.
      
      On such case, the driver will OOPS, as it would try to de-reference a
      NULL value. So, the check if p_set is not NULL doesn't make any sense.
      
      Solves those two smatch warnings:
      
      	drivers/media/platform/rcar-vin/rcar-dma.c:489 rvin_set_coeff() warn: variable dereferenced before check 'p_set' (see line 484)
      	drivers/media/platform/rcar-vin/rcar-dma.c:494 rvin_set_coeff() error: we previously assumed 'p_set' could be null (see line 489)
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      bf78f23a
    • Mauro Carvalho Chehab's avatar
      media: sti/delta: remove uneeded check · 1021cd56
      Mauro Carvalho Chehab authored
      At the error logic, ipc_buf was already asigned to &ctx->ipc_buf_struct,
      with can't be null, as warned by smatch:
      
      	drivers/media/platform/sti/delta/delta-ipc.c:223 delta_ipc_open() warn: variable dereferenced before check 'ctx->ipc_buf' (see line 183)
      
      So, remove the uneeded check.
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+samsung@kernel.org>
      1021cd56