diff options
-rw-r--r-- | drivers/net/xen-netback/netback.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xen-netback/netback.c index 438d0c09b7e6..72314c7998fc 100644 --- a/drivers/net/xen-netback/netback.c +++ b/drivers/net/xen-netback/netback.c | |||
@@ -192,8 +192,8 @@ static bool start_new_rx_buffer(int offset, unsigned long size, int head) | |||
192 | * into multiple copies tend to give large frags their | 192 | * into multiple copies tend to give large frags their |
193 | * own buffers as before. | 193 | * own buffers as before. |
194 | */ | 194 | */ |
195 | if ((offset + size > MAX_BUFFER_OFFSET) && | 195 | BUG_ON(size > MAX_BUFFER_OFFSET); |
196 | (size <= MAX_BUFFER_OFFSET) && offset && !head) | 196 | if ((offset + size > MAX_BUFFER_OFFSET) && offset && !head) |
197 | return true; | 197 | return true; |
198 | 198 | ||
199 | return false; | 199 | return false; |