rtlwifi: initialize local array and set value.
[pandora-kernel.git] / drivers / net / ppp / ppp_deflate.c
index 1dbdf82..43764cc 100644 (file)
@@ -268,7 +268,7 @@ static int z_compress(void *arg, unsigned char *rptr, unsigned char *obuf,
        /*
         * See if we managed to reduce the size of the packet.
         */
-       if (olen < isize) {
+       if (olen < isize && olen <= osize) {
                state->stats.comp_bytes += olen;
                state->stats.comp_packets++;
        } else {