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