diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-11-08 09:58:25 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-11-08 09:58:25 -0500 |
commit | 17a4adbe68c8e6c1fde8decb2345dc4acea87934 (patch) | |
tree | 16d772ee8b5904ad9b92e1514e131bc504a079ae /sound/core/pcm_native.c | |
parent | c9adeefda0e29bed628e40e7f9da1f84243937e7 (diff) | |
parent | 8bb4d9ce08b0a92ca174e41d92c180328f86173f (diff) |
Merge branch 'for-linus' into for-next
Diffstat (limited to 'sound/core/pcm_native.c')
-rw-r--r-- | sound/core/pcm_native.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/core/pcm_native.c b/sound/core/pcm_native.c index b329ca58e63c..c76f6375a96b 100644 --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c | |||
@@ -2124,7 +2124,8 @@ static int snd_pcm_playback_open(struct inode *inode, struct file *file) | |||
2124 | pcm = snd_lookup_minor_data(iminor(inode), | 2124 | pcm = snd_lookup_minor_data(iminor(inode), |
2125 | SNDRV_DEVICE_TYPE_PCM_PLAYBACK); | 2125 | SNDRV_DEVICE_TYPE_PCM_PLAYBACK); |
2126 | err = snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_PLAYBACK); | 2126 | err = snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_PLAYBACK); |
2127 | snd_card_unref(pcm->card); | 2127 | if (pcm) |
2128 | snd_card_unref(pcm->card); | ||
2128 | return err; | 2129 | return err; |
2129 | } | 2130 | } |
2130 | 2131 | ||
@@ -2137,7 +2138,8 @@ static int snd_pcm_capture_open(struct inode *inode, struct file *file) | |||
2137 | pcm = snd_lookup_minor_data(iminor(inode), | 2138 | pcm = snd_lookup_minor_data(iminor(inode), |
2138 | SNDRV_DEVICE_TYPE_PCM_CAPTURE); | 2139 | SNDRV_DEVICE_TYPE_PCM_CAPTURE); |
2139 | err = snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_CAPTURE); | 2140 | err = snd_pcm_open(file, pcm, SNDRV_PCM_STREAM_CAPTURE); |
2140 | snd_card_unref(pcm->card); | 2141 | if (pcm) |
2142 | snd_card_unref(pcm->card); | ||
2141 | return err; | 2143 | return err; |
2142 | } | 2144 | } |
2143 | 2145 | ||