]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - sound/firewire/scs1x.c
Merge tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee139...
[karo-tx-linux.git] / sound / firewire / scs1x.c
index 1f5920d6eacc02ec84a1795543799a3aaba77fbe..505fc812319958e12e804a2917c6d6cd3b4df88d 100644 (file)
@@ -404,8 +404,10 @@ static int scs_probe(struct fw_unit *unit, const struct ieee1394_device_id *id)
        scs->output_idle = true;
 
        scs->buffer = kmalloc(HSS1394_MAX_PACKET_SIZE, GFP_KERNEL);
-       if (!scs->buffer)
+       if (!scs->buffer) {
+               err = -ENOMEM;
                goto err_card;
+       }
 
        scs->hss_handler.length = HSS1394_MAX_PACKET_SIZE;
        scs->hss_handler.address_callback = handle_hss;