Kevin Hilman 02582b92f6 MUSB: Add sanity check for maximum number of endpoints
There is no check if platform code passes in more endpoints (num_eps)
than the maximum number of enpoints (MUSB_C_NUM_EPS.)  The result is
that allocate_instance() happily writes past the end of 'struct musb'
corrupting memory.

This patch adds a BUG() if the platform code requests more than the max.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2008-10-17 14:40:58 -07:00
..
2008-10-15 11:31:54 +11:00
2008-10-17 14:40:52 -07:00
2008-10-16 11:21:48 -07:00
2008-10-16 11:21:40 -07:00
2008-10-16 11:21:38 -07:00
2008-10-14 22:24:51 +01:00
2008-10-15 23:16:07 +01:00
2008-10-16 11:21:30 -07:00
2008-10-14 10:11:27 +11:00
2008-10-16 11:21:49 -07:00
2008-10-13 14:33:13 -07:00
2008-10-16 11:21:45 -07:00
2008-10-16 11:21:51 -07:00
2008-10-03 10:04:10 +02:00