aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorMichal Nazarewicz <[email protected]>2010-06-14 10:43:34 +0200
committerGreg Kroah-Hartman <[email protected]>2010-06-30 08:16:05 -0700
commitf588c0db39ca35f69f815dabe5682759daa25098 (patch)
tree6dc88e41bb71c04cc8d6a1f21affd7e827edd075 /tools/perf/util/scripting-engines/trace-event-python.c
parentb23097b793081358a6d943263c91bae4c955c4e3 (diff)
USB: gadget: g_fs: possible invalid pointer reference bug fixed
During __gfs_do_config() some invalid pointers may be left in usb_configuration::interfaces array from previous calls to the __gfs_do_config() for the same configuration. This will always happen if an user space function which has a fewer then the last user space function registers itself. Composite's set_config() function that a pointer after the last interface in usb_configuration::interface is NULL unless the array is full. This patch makes the __gfs_do_config() make sure that if the usb_configuration::interface is not full then a pointer after the last interface is NULL. Signed-off-by: Michal Nazarewicz <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions