9f330ed6e0
(the xd bugs also apply to the xy driver...) [1] check return value from malloc() for NULL before trying to bzero it. [2] use "=" rather than "|=" when writing to CSR (otherwise you may ACK something you don't mean to!).