[PATCH] crypto: mxc-scc - check clk_prepare_enable() error
From: Fabio Estevamclk_prepare_enable() may fail, so we should better check its return value and propagate it in the case of failure. Signed-off-by: Fabio Estevam --- drivers/crypto/mxc-scc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/crypto/mxc-scc.c b/drivers/crypto/mxc-scc.c index ff383ef..ee4be1b0 100644 --- a/drivers/crypto/mxc-scc.c +++ b/drivers/crypto/mxc-scc.c @@ -668,7 +668,9 @@ static int mxc_scc_probe(struct platform_device *pdev) return PTR_ERR(scc->clk); } - clk_prepare_enable(scc->clk); + ret = clk_prepare_enable(scc->clk); + if (ret) + return ret; /* clear error status register */ writel(0x0, scc->base + SCC_SCM_ERROR_STATUS); -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 6/7] random: make /dev/urandom scalable for silly userspace programs
On Sun, Aug 21, 2016 at 12:53:15PM +0300, Jan Varho wrote: > On Mon, Jun 13, 2016 at 6:48 PM, Theodore Ts'owrote: > > +static inline void maybe_reseed_primary_crng(void) > > +{ > > + if (crng_init > 2 && > > + time_after(jiffies, primary_crng.init_time + > > CRNG_RESEED_INTERVAL)) > > + crng_reseed(_crng, _pool); > > +} > > Is the above function (which is now in 4.8-rc2) supposed to do > something? It seems to have no callers and the maximum value of > crng_init is 2. It's dead code. Its function got moved into _extra_crng(), and you're right, these days crng_init never gets above 2. Thanks for pointing that out. I'll take it out as a cleanup patch. - Ted -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [PATCH 6/7] random: make /dev/urandom scalable for silly userspace programs
On Mon, Jun 13, 2016 at 6:48 PM, Theodore Ts'owrote: > +static inline void maybe_reseed_primary_crng(void) > +{ > + if (crng_init > 2 && > + time_after(jiffies, primary_crng.init_time + > CRNG_RESEED_INTERVAL)) > + crng_reseed(_crng, _pool); > +} Hi, Is the above function (which is now in 4.8-rc2) supposed to do something? It seems to have no callers and the maximum value of crng_init is 2. -- Jan Varho -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Attention Beneficially
Attention Beneficially WESTERN UNION This is very urgent Our Operation manager has sent your first payment of $5000.00 to you. Here is what we need from you to complete the transfer, Your Name, Your Address,A Copy Of Your ID and Your Telephone Number: Noted That Only Fee Request from You Is to Reactivate Transfer Files which is Sum Of $65Only, No More Fee again after that. Western Union Agent: Mr. Peterson Godwin Direct phone line is: + 229 98782817 E-mail ::(westernunion8...@gmail.com) Bellow is your first payment for $5000usd sent today in your name. Sender Name: Mr. MTCN: Question Answer Amount Sent: $5000.00 You can use this link to confirm the payment, Best Regards, Mr.Joseph Ezo -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html