ptp: oops in ptp_ioctl()
[deliverable/linux.git] / drivers / ptp / ptp_chardev.c
index 0b1ac6be69ce8d2a73d58432badb7bf7262ad5b6..d637c933c8a90655ffe152101dda2b9c71fd3836 100644 (file)
@@ -211,6 +211,7 @@ long ptp_ioctl(struct posix_clock *pc, unsigned int cmd, unsigned long arg)
                sysoff = memdup_user((void __user *)arg, sizeof(*sysoff));
                if (IS_ERR(sysoff)) {
                        err = PTR_ERR(sysoff);
+                       sysoff = NULL;
                        break;
                }
                if (sysoff->n_samples > PTP_MAX_SAMPLES) {
This page took 0.028093 seconds and 5 git commands to generate.