gpudev: manage null parameters in memory functions