pcmcia: check for pointer instead of pointer address