diff options
author | Damien George <damien.p.george@gmail.com> | 2018-06-25 23:39:46 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-06-25 23:39:46 +1000 |
commit | 37c4fd3b50fa0fc2548331859e4e7df369a1ca73 (patch) | |
tree | eb6de307f475352376024fbba9136e0560d15dab /py/objmodule.c | |
parent | 5731e535dd516c931d45c71dba153cc8bbdd7d72 (diff) |
stm32/mboot: Fix bug with invalid memory access of USB state.
Only one of pcd_fs_handle/pcd_hs_handle is ever initialised, so if both of
these USB peripherals are enabled then one of these if-statements will
access invalid memory pointed to by an uninitialised Instance. This patch
fixes this bug by explicitly referencing the peripheral struct.
Diffstat (limited to 'py/objmodule.c')
0 files changed, 0 insertions, 0 deletions