/* * This header provides constants for configuring the I.MX25 ADC */ #ifndef _DT_BINDINGS_IIO_ADC_FS_IMX25_GCQ_H #define _DT_BINDINGS_IIO_ADC_FS_IMX25_GCQ_H #define MX25_ADC_REFP_YP 0 /* YP voltage reference */ #define MX25_ADC_REFP_XP 1 /* XP voltage reference */ #define MX25_ADC_REFP_EXT 2 /* External voltage reference */ #define MX25_ADC_REFP_INT 3 /* Internal voltage reference */ #define MX25_ADC_REFN_XN 0 /* XN ground reference */ #define MX25_ADC_REFN_YN 1 /* YN ground reference */ #define MX25_ADC_REFN_NGND 2 /* Internal ground reference */ #define MX25_ADC_REFN_NGND2 3 /* External ground reference */ #endif
summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/keyspan_usa90msg.h
diff options
context:
space:
mode:
authorVincent Pelletier <plr.vincent@gmail.com>2017-01-18 00:57:44 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-25 12:03:52 +0100
commit83e526f2a2fa4b2e82b6bd3ddbb26b70acfa8947 (patch)
tree3067a6dfefc8299039bc89f9eca8dc36a77e1ab4 /drivers/usb/serial/keyspan_usa90msg.h
parentd9b2997e4a0a874e452df7cdd7de5a54502bd0aa (diff)
usb: gadget: f_fs: Assorted buffer overflow checks.
OS descriptor head, when flagged as provided, is accessed without checking if it fits in provided buffer. Verify length before access. Also, there are other places where buffer length it checked after accessing offsets which are potentially past the end. Check buffer length before as well to fail cleanly. Signed-off-by: Vincent Pelletier <plr.vincent@gmail.com> Acked-by: Felipe Balbi <felipe.balbi@linux.intel.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial/keyspan_usa90msg.h')