tty: fix possible null-ptr-defer in spkttyiorelease
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.1.8 by commit 64152e05a4de3ebf59f1740a0985a6d5fba0c77b, it was introduced in version v5.12 by commit 4f2a81f3a88217e7340b2cab5c0a5ebd0112514c. For more details please see the references link.