[PATCH 3.16 76/87] perf/ioctl: Add check for the sample_period value