mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
Set a storeOps storeproc for the memcache case
Finish fixing the bug from34ffc9cd
that57d8e454
only partially fixed -- set a storeOps.storeproc element in rxfs_storeMemOps as well as in rxfs_storeOps. This eliminates a NULL/uninitialized memory dereference. Change-Id: I9fe0fb147222b8f7a5a76c9ada9ca93f53ce1fa7 Reviewed-on: http://gerrit.openafs.org/1677 Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
709315400c
commit
91450a968d
@ -349,7 +349,8 @@ struct storeOps rxfs_storeMemOps = {
|
||||
rxfs_storeStatus,
|
||||
rxfs_storePadd,
|
||||
rxfs_storeClose,
|
||||
rxfs_storeDestroy
|
||||
rxfs_storeDestroy,
|
||||
afs_GenericStoreProc
|
||||
#else
|
||||
.prepare = rxfs_storeMemPrepare,
|
||||
.read = rxfs_storeMemRead,
|
||||
@ -357,7 +358,12 @@ struct storeOps rxfs_storeMemOps = {
|
||||
.status = rxfs_storeStatus,
|
||||
.padd = rxfs_storePadd,
|
||||
.close = rxfs_storeClose,
|
||||
.destroy = rxfs_storeDestroy
|
||||
.destroy = rxfs_storeDestroy,
|
||||
#ifdef AFS_LINUX26_ENV
|
||||
.storeproc = afs_linux_storeproc
|
||||
#else
|
||||
.storeproc = afs_GenericStoreProc
|
||||
#endif
|
||||
#endif
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user