commit | d1933689aa9ce2e07fe9e7e2ff77358f8bb11864 | [log] [tgz] |
---|---|---|
author | Emilio López <emilio@elopez.com.ar> | Fri Jan 24 22:32:41 2014 -0300 |
committer | Mike Turquette <mturquette@linaro.org> | Mon Jan 27 12:28:23 2014 -0800 |
tree | ec8199bbfd812cf7b144d6df6c8408a34c462c48 | |
parent | 0b7f04b868ec1230cf2dd698697dbc32a509ea4d [diff] |
clk: sunxi: fix overflow when setting up divided factors Currently, we are allocating space for two pointers, when we actually may need to store three of them (two divisors plus the original clock). Fix this, and change sizeof(type) to sizeof(*var) to keep checkpatch.pl happy. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Emilio López <emilio@elopez.com.ar> Signed-off-by: Mike Turquette <mturquette@linaro.org>