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