diff options
-rw-r--r-- | net/bluetooth/cmtp/core.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/bluetooth/cmtp/core.c b/net/bluetooth/cmtp/core.c index 964ea9126f9f..16aa6bd039ba 100644 --- a/net/bluetooth/cmtp/core.c +++ b/net/bluetooth/cmtp/core.c | |||
@@ -235,9 +235,12 @@ static void cmtp_process_transmit(struct cmtp_session *session) | |||
235 | 235 | ||
236 | size = min_t(uint, ((tail < 258) ? (tail - 2) : (tail - 3)), skb->len); | 236 | size = min_t(uint, ((tail < 258) ? (tail - 2) : (tail - 3)), skb->len); |
237 | 237 | ||
238 | if ((scb->id < 0) && ((scb->id = cmtp_alloc_block_id(session)) < 0)) { | 238 | if (scb->id < 0) { |
239 | skb_queue_head(&session->transmit, skb); | 239 | scb->id = cmtp_alloc_block_id(session); |
240 | break; | 240 | if (scb->id < 0) { |
241 | skb_queue_head(&session->transmit, skb); | ||
242 | break; | ||
243 | } | ||
241 | } | 244 | } |
242 | 245 | ||
243 | if (size < 256) { | 246 | if (size < 256) { |