zram: avoid access beyond the zram device