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