drivers: serial: jsm: fix some leaks in probe
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v6.0.3 by commit 3ea1fd63fdf0e83b491c2a9f25b395aa0e4bf6e8, it was introduced in version v3.19 by commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5. For more details please see the references link.