1. 05 Aug, 2019 15 commits
  2. 02 Aug, 2019 2 commits
  3. 31 Jul, 2019 6 commits
  4. 30 Jul, 2019 2 commits
    • Gustavo A. R. Silva's avatar
      ALSA: sparc: Mark expected switch fall-throughs · 83554cb9
      Gustavo A. R. Silva authored
      Mark switch cases where we are expecting to fall through.
      
      This patch fixes the following warnings (Building: sparc64):
      
      sound/sparc/dbri.c: In function ‘reverse_bytes’:
      sound/sparc/dbri.c:582:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
         b = ((b & 0xffff0000) >> 16) | ((b & 0x0000ffff) << 16);
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/sparc/dbri.c:583:2: note: here
        case 16:
        ^~~~
      sound/sparc/dbri.c:584:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
         b = ((b & 0xff00ff00) >> 8) | ((b & 0x00ff00ff) << 8);
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/sparc/dbri.c:585:2: note: here
        case 8:
        ^~~~
      sound/sparc/dbri.c:586:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
         b = ((b & 0xf0f0f0f0) >> 4) | ((b & 0x0f0f0f0f) << 4);
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/sparc/dbri.c:587:2: note: here
        case 4:
        ^~~~
      sound/sparc/dbri.c:588:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
         b = ((b & 0xcccccccc) >> 2) | ((b & 0x33333333) << 2);
         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      sound/sparc/dbri.c:589:2: note: here
        case 2:
        ^~~~
      Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      83554cb9
    • Gustavo A. R. Silva's avatar
      sound: dmasound_atari: Mark expected switch fall-through · 8e774e02
      Gustavo A. R. Silva authored
      Mark switch cases where we are expecting to fall through.
      
      This patch fixes the following warning (Building: m68k):
      
      sound/oss/dmasound/dmasound_atari.c: warning: this statement may fall
      through [-Wimplicit-fallthrough=]:  => 1449:24
      
      Notice that, in this particular case, the code comment is
      modified in accordance with what GCC is expecting to find.
      Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Tested-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
      Reviewed-by: default avatarKees Cook <keescook@chromium.org>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      8e774e02
  5. 29 Jul, 2019 1 commit
  6. 28 Jul, 2019 1 commit
  7. 26 Jul, 2019 2 commits
    • Jia-Ju Bai's avatar
      ALSA: i2c: ak4xxx-adda: Fix a possible null pointer dereference in build_adc_controls() · 2127c01b
      Jia-Ju Bai authored
      In build_adc_controls(), there is an if statement on line 773 to check
      whether ak->adc_info is NULL:
          if (! ak->adc_info ||
              ! ak->adc_info[mixer_ch].switch_name)
      
      When ak->adc_info is NULL, it is used on line 792:
          knew.name = ak->adc_info[mixer_ch].selector_name;
      
      Thus, a possible null-pointer dereference may occur.
      
      To fix this bug, referring to lines 773 and 774, ak->adc_info
      and ak->adc_info[mixer_ch].selector_name are checked before being used.
      
      This bug is found by a static analysis tool STCheck written by us.
      Signed-off-by: default avatarJia-Ju Bai <baijiaju1990@gmail.com>
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      2127c01b
    • Takashi Iwai's avatar
      ALSA: hda - Show the fatal CORB/RIRB error more clearly · dd65f7e1
      Takashi Iwai authored
      The last fallback of CORB/RIRB communication error recovery is to turn
      on the single command mode, and this last resort usually means that
      something is really screwed up.  Instead of a normal dev_err(), show
      the error more clearly with dev_WARN() with the caller stack trace.
      
      Also, show the bus-reset fallback also as an error, too.
      Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
      dd65f7e1
  8. 25 Jul, 2019 1 commit
  9. 24 Jul, 2019 1 commit
  10. 22 Jul, 2019 9 commits