#undef TRACE_SYSTEM #define TRACE_SYSTEM nmi #if !defined(_TRACE_NMI_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_NMI_H #include #include TRACE_EVENT(nmi_handler, TP_PROTO(void *handler, s64 delta_ns, int handled), TP_ARGS(handler, delta_ns, handled), TP_STRUCT__entry( __field( void *, handler ) __field( s64, delta_ns) __field( int, handled ) ), TP_fast_assign( __entry->handler = handler; __entry->delta_ns = delta_ns; __entry->handled = handled; ), TP_printk("%ps() delta_ns: %lld handled: %d", __entry->handler, __entry->delta_ns, __entry->handled) ); #endif /* _TRACE_NMI_H */ /* This part ust be outside protection */ #include n'>index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-01-12 18:17:43 +0100
committerJiri Kosina <jkosina@suse.cz>2017-01-13 11:59:32 +0100
commit7a546af50eb78ab99840903083231eb635c8a566 (patch)
tree16e370ecc364cfb39cfcf6324351070199cad955
parent6d104af38b570d37aa32a5803b04c354f8ed513d (diff)
HID: corsair: fix control-transfer error handling
Make sure to check for short control transfers in order to avoid parsing uninitialised buffer data and leaking it to user space. Note that the backlight and macro-mode buffer constraints are kept as loose as possible in order to avoid any regressions should the current buffer sizes be larger than necessary. Fixes: 6f78193ee9ea ("HID: corsair: Add Corsair Vengeance K90 driver") Cc: stable <stable@vger.kernel.org> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz>