summaryrefslogtreecommitdiff
path: root/epoll2.h
blob: 1ecf5f0b83ad5806feb3a683eaf8612ff57881e2 (plain)
1
2
3
4
5
6
7
#ifndef __EPOLL_H
#define __EPOLL_H

extern void set_epoll_descriptor(int fd_epoll, int action, int fd_toadd, int events);
extern int set_epoll_descriptor2(int fd_epoll, int action, int fd_toadd, int events);

#endif /* __EPOLL_H */
selected='selected'>unified
authorClemens Gruber <clemens.gruber@pqgruber.com>2016-09-05 19:29:58 +0200
committerPeter Chen <peter.chen@nxp.com>2016-09-09 17:19:57 +0800
commit6f3c4fb6d05e63c9c6d8968302491c3a5457be61 (patch)
tree26dae4806595cc0b4a62e930a2352cad5cce812a
parentc4e94174983a86c935be1537a73e496b778b0287 (diff)
usb: chipidea: udc: fix NULL ptr dereference in isr_setup_status_phase
Problems with the signal integrity of the high speed USB data lines or noise on reference ground lines can cause the i.MX6 USB controller to violate USB specs and exhibit unexpected behavior. It was observed that USBi_UI interrupts were triggered first and when isr_setup_status_phase was called, ci->status was NULL, which lead to a NULL pointer dereference kernel panic. This patch fixes the kernel panic, emits a warning once and returns -EPIPE to halt the device and let the host get stalled. It also adds a comment to point people, who are experiencing this issue, to their USB hardware design. Cc: <stable@vger.kernel.org> #4.1+ Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>
Diffstat