Skip to content

Commit

Permalink
rxrpc: Use rxrpc_is_service_call() rather than rxrpc_conn_is_service()
Browse files Browse the repository at this point in the history
Use rxrpc_is_service_call() rather than rxrpc_conn_is_service() if the call
is available just in case call->conn is NULL.

Signed-off-by: David Howells <[email protected]>
  • Loading branch information
dhowells committed Sep 7, 2016
1 parent 8b7fac5 commit 6543ac5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/rxrpc/input.c
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ void rxrpc_fast_process_packet(struct rxrpc_call *call, struct sk_buff *skb)
case RXRPC_PACKET_TYPE_BUSY:
_proto("Rx BUSY %%%u", sp->hdr.serial);

if (rxrpc_conn_is_service(call->conn))
if (rxrpc_is_service_call(call))
goto protocol_error;

write_lock_bh(&call->state_lock);
Expand Down Expand Up @@ -525,7 +525,7 @@ static void rxrpc_post_packet_to_call(struct rxrpc_connection *conn,
default:
goto dead_call;
case RXRPC_CALL_SUCCEEDED:
if (rxrpc_conn_is_service(call->conn))
if (rxrpc_is_service_call(call))
goto dead_call;
goto resend_final_ack;
}
Expand Down

0 comments on commit 6543ac5

Please sign in to comment.