Re: [PATCH] vt: correctly check return value of class_create

From: Greg KH
Date: Sat Jan 23 2016 - 18:51:54 EST


On Sat, Jan 23, 2016 at 03:52:46PM -0500, Insu Yun wrote:
> Since class_create can be failed in memory pressure,

In this case, really? At init time?

> its return value should be checked and correctly handled.

You didn't correctly handle it, you leaked memory and other resources :(