summaryrefslogtreecommitdiffstats
path: root/drivers/ide/siimage.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2016-03-02 23:33:32 +0100
committerDavid S. Miller <davem@davemloft.net>2016-03-20 16:59:27 -0400
commit0d7ef45cdeebcc95d581703f45f6de7b2ee89b8d (patch)
treef79b4359d7bc5cccb5c468ad482d88eb64eeb4e0 /drivers/ide/siimage.c
parenteccf432f6542d9895d6c50edb5634c6147918ed2 (diff)
downloadop-kernel-dev-0d7ef45cdeebcc95d581703f45f6de7b2ee89b8d.zip
op-kernel-dev-0d7ef45cdeebcc95d581703f45f6de7b2ee89b8d.tar.gz
ide: palm_bk3710: test clock rate to avoid division by 0
The clk API may return 0 on clk_get_rate, so we should check the result before using it as a divisor. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/siimage.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud