gdth: Prevent negative offsets in ioctl CVE-2009-3080