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 v5.10.150 by commit 71ffe5111f0ffa2fd43c14fd176c6f05d4e82212, it was introduced in version v3.19 by commit 03a8482c17dd0ae3251451d54cbbc03f930f21d5. For more details please see the references link.