Title: [8246] trunk/sound/soc/soc-cache.c: soc-cache: return -1 for register overflow for 16_8
Revision
8246
Author
bhsong
Date
2010-01-28 00:01:46 -0500 (Thu, 28 Jan 2010)

Log Message

soc-cache: return -1 for register overflow for 16_8

Modified Paths


Diff

Modified: trunk/sound/soc/soc-cache.c (8245 => 8246)


--- trunk/sound/soc/soc-cache.c	2010-01-28 03:13:55 UTC (rev 8245)
+++ trunk/sound/soc/soc-cache.c	2010-01-28 05:01:46 UTC (rev 8246)
@@ -328,6 +328,8 @@
 	reg &= 0xff;
 	if (reg < codec->reg_cache_size)
 		cache[reg] = value;
+	else
+		return -1;
 	ret = codec->hw_write(codec->control_data, data, 3);
 	if (ret == 3)
 		return 0;
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to