From: Linus Torvalds Date: Thu, 9 Jul 2015 18:20:01 +0000 (-0700) Subject: Fix firmware loader uevent buffer NULL pointer dereference X-Git-Tag: omap-for-v4.2/fixes-rc2-v2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f957724b94cb19f5c1c97efd01dd4df8ced323c;p=pandora-kernel.git Fix firmware loader uevent buffer NULL pointer dereference The firmware class uevent function accessed the "fw_priv->buf" buffer without the proper locking and testing for NULL. This is an old bug (looks like it goes back to 2012 and commit 1244691c73b2: "firmware loader: introduce firmware_buf"), but for some reason it's triggering only now in 4.2-rc1. Shuah Khan is trying to bisect what it is that causes this to trigger more easily, but in the meantime let's just fix the bug since others are hitting it too (at least Ingo reports having seen it as well). Reported-and-tested-by: Shuah Khan Acked-by: Ming Lei Cc: Greg Kroah-Hartman Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed