spi: fix unsafe getting of addr