diff options
-rw-r--r-- | sound/soc/samsung/i2s.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/samsung/i2s.c b/sound/soc/samsung/i2s.c index 92f64363427d..a9da24f34834 100644 --- a/sound/soc/samsung/i2s.c +++ b/sound/soc/samsung/i2s.c | |||
@@ -1268,7 +1268,8 @@ static int samsung_i2s_probe(struct platform_device *pdev) | |||
1268 | 1268 | ||
1269 | return 0; | 1269 | return 0; |
1270 | err: | 1270 | err: |
1271 | release_mem_region(regs_base, resource_size(res)); | 1271 | if (res) |
1272 | release_mem_region(regs_base, resource_size(res)); | ||
1272 | 1273 | ||
1273 | return ret; | 1274 | return ret; |
1274 | } | 1275 | } |