zram: protect sysfs handler from invalid memory access