]> Pileus Git - ~andy/linux/commitdiff
[ALSA] virmidi - fix ioctl parameter passing when setting client name
authorClemens Ladisch <clemens@ladisch.de>
Fri, 8 Apr 2005 06:25:23 +0000 (08:25 +0200)
committerJaroslav Kysela <perex@suse.cz>
Sun, 29 May 2005 07:58:40 +0000 (09:58 +0200)
ALSA sequencer
The last change to reduce stack usage did not adjust the parameter to
SNDRV_SEQ_IOCTL_SET_CLIENT_IOCTL which resulted in passing the address
of the pointer instead of the structure.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
sound/core/seq/seq_virmidi.c

index 1274ab4546bc86ba6f4412fda644e485d429f68b..58c56a198d2a74c32db0fb1b95a29372c8c05f6f 100644 (file)
@@ -384,7 +384,7 @@ static int snd_virmidi_dev_attach_seq(snd_virmidi_dev_t *rdev)
        info->client = client;
        info->type = KERNEL_CLIENT;
        sprintf(info->name, "%s %d-%d", rdev->rmidi->name, rdev->card->number, rdev->device);
-       snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_SET_CLIENT_INFO, &info);
+       snd_seq_kernel_client_ctl(client, SNDRV_SEQ_IOCTL_SET_CLIENT_INFO, info);
 
        /* create a port */
        memset(pinfo, 0, sizeof(*pinfo));