]> err.no Git - linux-2.6/blobdiff - drivers/firewire/fw-ohci.c
firewire: fw-ohci: use of uninitialized data in AR handler
[linux-2.6] / drivers / firewire / fw-ohci.c
index 4f02c55f13e15131b95bc615e540e2931ad63d96..b062e736b78619811016c5b1fd0466c399a82a3f 100644 (file)
@@ -548,6 +548,11 @@ static __le32 *handle_ar_packet(struct ar_context *ctx, __le32 *buffer)
                p.header_length = 12;
                p.payload_length = 0;
                break;
+
+       default:
+               /* FIXME: Stop context, discard everything, and restart? */
+               p.header_length = 0;
+               p.payload_length = 0;
        }
 
        p.payload = (void *) buffer + p.header_length;