mirror of
https://github.com/torvalds/linux.git
synced 2024-12-30 06:41:43 +00:00
staging: unisys: dereferencing NULL pointer
we can reach the label Away in total five situation and in four of of them pDevInfo is NULL. so we were basically dereferencing a NULL pointer. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
f9b64692e1
commit
930a021f2e
@ -1298,7 +1298,8 @@ my_device_create(struct controlvm_message *inmsg)
|
||||
POSTCODE_SEVERITY_INFO);
|
||||
Away:
|
||||
/* get the bus and devNo for DiagPool channel */
|
||||
if (is_diagpool_channel(pDevInfo->chan_info.channel_type_uuid)) {
|
||||
if (pDevInfo &&
|
||||
is_diagpool_channel(pDevInfo->chan_info.channel_type_uuid)) {
|
||||
g_diagpoolBusNo = busNo;
|
||||
g_diagpoolDevNo = devNo;
|
||||
LOGINF("CONTROLVM_DEVICE_CREATE for DiagPool channel: busNo=%lu, devNo=%lu",
|
||||
|
Loading…
Reference in New Issue
Block a user