https://github.com/torvalds/linux
Revision ba13e98f2cebd55a3744c5ffaa08f9dca73bf521 authored by Sean Young on 10 November 2016, 16:44:49 UTC, committed by Linus Torvalds on 11 November 2016, 16:45:08 UTC
When receiving a nec repeat, ensure the correct scancode is repeated
rather than a random value from the stack.  This removes the need for
the bogus uninitialized_var() and also fixes the warnings:

    drivers/media/usb/dvb-usb/dib0700_core.c: In function ‘dib0700_rc_urb_completion’:
    drivers/media/usb/dvb-usb/dib0700_core.c:679: warning: ‘protocol’ may be used uninitialized in this function

[sean addon: So after writing the patch and submitting it, I've bought the
             hardware on ebay. Without this patch you get random scancodes
             on nec repeats, which the patch indeed fixes.]

Signed-off-by: Sean Young <sean@mess.org>
Tested-by: Sean Young <sean@mess.org>
Cc: stable@vger.kernel.org
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 92dfffe
History
Tip revision: ba13e98f2cebd55a3744c5ffaa08f9dca73bf521 authored by Sean Young on 10 November 2016, 16:44:49 UTC
dib0700: fix nec repeat handling
Tip revision: ba13e98
File Mode Size
Kconfig -rw-r--r-- 5.3 KB
Makefile -rw-r--r-- 790 bytes
README.dino -rw-r--r-- 1.0 KB
asp.c -rw-r--r-- 3.5 KB
ccio-dma.c -rw-r--r-- 47.4 KB
ccio-rm-dma.c -rw-r--r-- 5.1 KB
dino.c -rw-r--r-- 30.3 KB
eisa.c -rw-r--r-- 11.5 KB
eisa_eeprom.c -rw-r--r-- 2.7 KB
eisa_enumerator.c -rw-r--r-- 11.5 KB
gsc.c -rw-r--r-- 5.6 KB
gsc.h -rw-r--r-- 1.5 KB
hppb.c -rw-r--r-- 2.7 KB
iommu-helpers.h -rw-r--r-- 4.7 KB
iosapic.c -rw-r--r-- 29.0 KB
iosapic_private.h -rw-r--r-- 5.7 KB
lasi.c -rw-r--r-- 6.2 KB
lba_pci.c -rw-r--r-- 47.8 KB
led.c -rw-r--r-- 19.9 KB
pdc_stable.c -rw-r--r-- 30.3 KB
power.c -rw-r--r-- 7.3 KB
sba_iommu.c -rw-r--r-- 58.1 KB
superio.c -rw-r--r-- 13.8 KB
wax.c -rw-r--r-- 3.2 KB

README.dino

back to top