mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 21:02:43 +01:00
pcmcia: i82092: fix a null pointer dereference bug
During the driver loading process, the 'dev' field was not assigned, but the 'dev' field was referenced in the subsequent 'i82092aa_set_mem_map' function. Signed-off-by: Zheyu Ma <[email protected]> CC: <[email protected]> [[email protected]: shorten commit message, add Cc to stable] Signed-off-by: Dominik Brodowski <[email protected]>
This commit is contained in:
1 parent
2734d6c1b1
commit
e39cdacf2f
1 file changed
+1
@@ -112,6 +112,7 @@ static int i82092aa_pci_probe(struct pci_dev *dev,
|
||||
for (i = 0; i < socket_count; i++) {
|
||||
sockets[i].card_state = 1; /* 1 = present but empty */
|
||||
sockets[i].io_base = pci_resource_start(dev, 0);
|
||||
sockets[i].dev = dev;
|
||||
sockets[i].socket.features |= SS_CAP_PCCARD;
|
||||
sockets[i].socket.map_size = 0x1000;
|
||||
sockets[i].socket.irq_mask = 0;
|
||||
|
||||
Reference in new issue
Block a user