From: Eliot Blennerhassett <eblennerhassett@xxxxxxxxxxxxxxxx> Signed-off-by: Eliot Blennerhassett <eblennerhassett@xxxxxxxxxxxxxxxx> diff --git a/pci/asihpi/hpi6205.c b/pci/asihpi/hpi6205.c index daa359d..1654070 100644 --- a/pci/asihpi/hpi6205.c +++ b/pci/asihpi/hpi6205.c @@ -2126,6 +2126,9 @@ static short Hpi6205_TransferData( u32 dwTimeOut, dwTemp2; struct bus_master_interface *interface = pHw6205->pInterfaceBuffer; + if (!pData) + return HPI_ERROR_INVALID_DATA_TRANSFER; + dwDataSize &= ~3L; /* round dwDataSize down to nearest 4 bytes */ /* make sure state is IDLE */ -- 1.5.4.3 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel