aboutsummaryrefslogtreecommitdiff
path: root/Documentation/extcon/porting-android-switch-class
diff options
context:
space:
mode:
authorEmilio López <[email protected]>2014-01-24 22:32:41 -0300
committerMike Turquette <[email protected]>2014-01-27 12:28:23 -0800
commitd1933689aa9ce2e07fe9e7e2ff77358f8bb11864 (patch)
treeec8199bbfd812cf7b144d6df6c8408a34c462c48 /Documentation/extcon/porting-android-switch-class
parent0b7f04b868ec1230cf2dd698697dbc32a509ea4d (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 <[email protected]> Signed-off-by: Emilio López <[email protected]> Signed-off-by: Mike Turquette <[email protected]>
Diffstat (limited to 'Documentation/extcon/porting-android-switch-class')
0 files changed, 0 insertions, 0 deletions