mirror of
https://github.com/xcat2/xNBA.git
synced 2024-12-24 12:11:33 +00:00
command->data_{in,out} are now userptr_t, so it is invalid to compare
against NULL.
This commit is contained in:
parent
ea5fa82b91
commit
2497270c14
@ -129,7 +129,7 @@ static void iscsi_rx_data_in ( struct iscsi_session *iscsi, void *data,
|
||||
/* Copy data to data-in buffer */
|
||||
offset = ntohl ( data_in->offset ) + iscsi->rx_offset;
|
||||
assert ( iscsi->command != NULL );
|
||||
assert ( iscsi->command->data_in != NULL );
|
||||
assert ( iscsi->command->data_in );
|
||||
assert ( ( offset + len ) <= iscsi->command->data_in_len );
|
||||
copy_to_user ( iscsi->command->data_in, offset, data, len );
|
||||
|
||||
@ -235,7 +235,7 @@ static void iscsi_tx_data_out ( struct iscsi_session *iscsi,
|
||||
iscsi->tx_offset );
|
||||
remaining = ( ISCSI_DATA_LEN ( data_out->lengths ) - iscsi->tx_offset);
|
||||
assert ( iscsi->command != NULL );
|
||||
assert ( iscsi->command->data_out != NULL );
|
||||
assert ( iscsi->command->data_out );
|
||||
assert ( ( offset + remaining ) <= iscsi->command->data_out_len );
|
||||
|
||||
if ( remaining < len )
|
||||
|
Loading…
Reference in New Issue
Block a user