diff options
author | Jim Lin <jilin@nvidia.com> | 2016-05-13 14:32:16 +0200 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2016-05-31 10:24:30 +0200 |
commit | c6010c8b4d2c6e75853ca63c602c9af56fcbead5 (patch) | |
tree | 96dd3d10ffa4bfb96ae95eecf8fa5bccdcb51ce7 /init | |
parent | usb: gadget: f_tcm: out of bound access in usbg_drop_tpg (diff) | |
download | linux-c6010c8b4d2c6e75853ca63c602c9af56fcbead5.tar.xz linux-c6010c8b4d2c6e75853ca63c602c9af56fcbead5.zip |
usb: gadget: f_fs: Fix kernel panic if use_os_string not set
If c->cdev->use_os_string flag is not set,
don't need to invoke ffs_do_os_descs() in _ffs_func_bind.
So uninitialized ext_compat_id pointer won't be accessed by
__ffs_func_bind_do_os_desc to cause kernel panic.
Signed-off-by: Jim Lin <jilin@nvidia.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions