aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/opl3.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/oss/opl3.c')
-rw-r--r--sound/oss/opl3.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/oss/opl3.c b/sound/oss/opl3.c
index 2e8cfa5481f2..fc273e550944 100644
--- a/sound/oss/opl3.c
+++ b/sound/oss/opl3.c
@@ -166,7 +166,7 @@ int opl3_detect(int ioaddr, int *osp)
166 return 0; 166 return 0;
167 } 167 }
168 168
169 devc = kmalloc(sizeof(*devc), GFP_KERNEL); 169 devc = kzalloc(sizeof(*devc), GFP_KERNEL);
170 170
171 if (devc == NULL) 171 if (devc == NULL)
172 { 172 {
@@ -175,7 +175,6 @@ int opl3_detect(int ioaddr, int *osp)
175 return 0; 175 return 0;
176 } 176 }
177 177
178 memset(devc, 0, sizeof(*devc));
179 strcpy(devc->fm_info.name, "OPL2"); 178 strcpy(devc->fm_info.name, "OPL2");
180 179
181 if (!request_region(ioaddr, 4, devc->fm_info.name)) { 180 if (!request_region(ioaddr, 4, devc->fm_info.name)) {