commit | a85e126abf944884d5b3eba86ec7d541e8327256 | [log] [tgz] |
---|---|---|
author | Thomas Gleixner <tglx@linutronix.de> | Sun Apr 22 18:23:52 2018 +0200 |
committer | Kees Cook <keescook@chromium.org> | Tue Apr 24 19:50:08 2018 -0700 |
tree | ef5e3a7ca4d1d22c5b9de0ffe44c79589ae04550 | |
parent | 689c6efdfb58d7b21c375f515349e4091e08100b [diff] |
rslib: Simplify error path The four error path labels in rs_init() can be reduced to one by allocating the struct with kzalloc so the pointers in the struct are NULL and can be unconditionally handed in to kfree() because they either point to an allocation or are NULL. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Kees Cook <keescook@chromium.org>